J
josh
Hi If I have
Shape2D -> Interface
Shape3D -> abstract class
Can I do an anonymous class only with these two class-typo?
i.e.
new Shape2D() {} // here is equals, as if I did, to class MyClass
implements Shape2D () {}
new Shape3D() {} // here is equals as If I did, to class MyClass
extends Shape3D() {}
Shape2D -> Interface
Shape3D -> abstract class
Can I do an anonymous class only with these two class-typo?
i.e.
new Shape2D() {} // here is equals, as if I did, to class MyClass
implements Shape2D () {}
new Shape3D() {} // here is equals as If I did, to class MyClass
extends Shape3D() {}