diff --git a/guide/english/java/inheritance-basics/index.md b/guide/english/java/inheritance-basics/index.md index 402cd3d0fa..53f95b1005 100644 --- a/guide/english/java/inheritance-basics/index.md +++ b/guide/english/java/inheritance-basics/index.md @@ -49,4 +49,12 @@ modelS.charge(); See here that the class `ElectricCar` inherits or `extends` the public methods from `Car` class, as well as has its own methods and properties. Cool way to pass on information! +Inheritance is a way for *Object Oriented* languages to share properties from an existing class to a new class. The new class can use the properties of the old one, but the old one cannot use the new properties added into the new class. + Also notice the usage of super keyword here. Since our `Car` class had a constructor, so we have to initialize that constructor from the child class as well. We do that using the `super` keyword. Read more about Inheritance here. + +Inheritance is a way for *Object Oriented* languages to share properties from an existing class to a new class. The new class can use the properties of the old one, but the old one cannot use the new properties added into the new class. + + +#### More Information +- [Techopedia: Inheritance](https://www.techopedia.com/definition/3226/inheritance-java)