KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > picocontainer > doc > hotswapping > Husband


1 package org.picocontainer.doc.hotswapping;
2
3 /**
4  * @author Aslak Hellesøy
5  * @version $Revision: 1279 $
6  */

7 // START SNIPPET: class
8
public class Husband implements Man {
9     public final Woman woman;
10
11     public Husband(Woman woman) {
12         this.woman = woman;
13     }
14
15     public int getEndurance() {
16         return 10;
17     }
18 }
19
20 // START SNIPPET: class
21
Popular Tags