summary refs log blame commit diff stats
path: root/java/code/PackageInterfaceExample.java
blob: 13474334998e31f769663500ca4e3b1a4f210c78 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                            
import pkgTwo.MyClass;
import pkgOne.MyInterface;

public class PackageInterfaceExample {
    public static void main(String[] args) {
        MyInterface obj = new MyClass();

        obj.methodOne();
        obj.methodTwo();
        obj.methodThree();
    }
}