KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > csdl > foo > Foo


1 package csdl.foo;
2
3 /**
4  * Abstract class included in stand-alone system example.
5  *
6  * @author Joy M. Agustin
7  * @version $Id: Foo.java,v 1.2 2003/01/25 01:48:58 jagustin Exp $
8  */

9 public abstract class Foo {
10
11   /**
12    * Prints method name to screen then calls methodB(int a).
13    *
14    * @return an integer.
15    */

16   public abstract int methodA();
17
18   /**
19    * Prints method name and parameter type to screen.
20    *
21    * @param a dummy parameter that doesn't do anything.
22    */

23   public void methodB(int a) {
24     System.out.println("Foo: methodB(int)");
25   }
26
27   /**
28    * Prints method name and parameter types to screen.
29    *
30    * @param a Description of the Parameter
31    * @param b Description of the Parameter
32    */

33   public abstract void methodB(String JavaDoc a, Integer JavaDoc b);
34 }
35
Popular Tags