Skip to main content

Q) What is wrong with fallowing code?





interface I
{
       void x();
}
class A implements I
{
      
}

A)
When a sub class is created from an interface, it is the responsibility of that sub class to implement or override all the methods of the interface.

Comments