KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > examples > factory > src > impl2 > FactoryImpl2


1 package spoon.examples.factory.src.impl2;
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 FactoryImpl2 implements Factory {
8
9     public A createA() {
10         return new AImpl2();
11     }
12
13     public B createB() {
14         return new BImpl2();
15     }
16
17 }
18
Popular Tags