KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > examples > factory > src > impl1 > FactoryImpl1


1 package spoon.examples.factory.src.impl1;
2
3 import spoon.examples.factory.src.A;
4 import spoon.examples.factory.src.B;
5 import spoon.examples.factory.src.Factory;
6
7 public class FactoryImpl1 implements Factory {
8
9     public A createA() {
10         return new AImpl1();
11     }
12
13     public B createB() {
14         return new BImpl1();
15     }
16
17 }
18
Popular Tags