0
difference between keyword implement and extend
3 Answers
+ 3
The keyword 'extends' is used when a sub class inherits a super class or a sub interface inherits a super interface. A sub class can EXTEND only one super class in Java but a sub interface can EXTEND multiple interfaces.
The keyword 'implements' is used when a class uses an interface. The key point to note here is that a class can EXTEND only one super class but the same class can IMPLEMENT multiple interfaces at a time but while defining EXTENDS should come first..
0
Java can only extends one class, while implements many interface.
0
whenever we need to define the methods we use implements and for inheritance we use extends