Java extends Keyword
Java extends Keyword The Java extends keyword is used to create a subclass, allowing one class to inherit the properties and methods of another (superclass). It supports code reuse and establishes an “is-a” relationship between classes. extends in Class Inheritance When one class inherits from another class, it uses extends. class Animal { void makeSound() […]