Posts by Roberto Coelho • 21 points
1 post
-
1
votes2
answers959
viewsQ: Instantiate an object through the interface and access methods not present in it
I have the following interface: interface something { void doSomething(); } And I have a class that implements this interface and adds another method that does not contain in the interface: public…