Inheritance in Interface

1 2 3 4 5 6 7 interface A{ void show(); }   interface B extends A{ void print(); } interface A{ void show(); } interface B extends A{ void print(); } Now interface ‘B’ is inheriting interface ‘A’. Now class implementing ‘B’ should implement both show() and print() methods. Ground rule : Class can […]

Share this article on