class ClassOne implements SomeInterface { ClassTwo ct = new ClassTwo (); public boolean someMethod(){ return ct.someMethod(); } public static void main(String[] args) { } } interface SomeInterface { boolean someMethod(); } class ClassTwo implements SomeInterface { public boolean someMethod() { return true; } }
OOP
Java
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)