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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -