java - sub class does acquire the interface implemented by the superclass? -
Just a little question that might be stupid but I have to make sure. If I get 2 classes: Classes and classesby have been declared in this way
Public class A utility ... // Usage is an interface clearly ... Public classes class A Expanding ... ... Is Classbubble usable?
Edit and if the answer is yes, then I will write this declaration below
Public Class Enhancement Class A Useful What will happen? Eclipse does not show me errors, but I have to know whether there will be any way
Public Classes Class A Appliances Applies To Usable Bus is equal to public classb class A expands . As you've already raised the classes , which implements all the methods in your interface usable , the eclipse wont show any error (compilation): usable = new category (); Usable = new classbie ();
Comments
Post a Comment