Suppose, if my class inherited from an interface, can super() be used in method of the class? An interface has no concrete method. How can super() be used? What will happen?
Suppose, if my class inherited from an interface, can super() be used in method
Share
You cannot inherit from an interface in Java. Your class will be inherited from Object. And so it is Object’s constructor you call.