All Subjects
Light
In Java, the keyword "extends" is used to create a subclass that inherits properties and methods from a superclass. It establishes an "is-a" relationship between classes.
congrats on reading the definition of extends. now let's actually learn it.
Subclass: A class that extends another class to inherit its properties and methods.
Superclass: The class that is being extended or inherited from.
Inheritance: The process by which one class acquires the properties and behaviors of another class.