Inheritance (OOP - JAVA)
Inheritance Let's consider the first BMW car and a BMW 740E car. There are lots of differences and similarities in those cars. See the similar properties for those cars, tires engine light door break liners seats steering wheel See the similar behaviors for those cars, drive reverse break horn signal lights on/off See the newly properties for BMW 740E, cameras sensors digital dashboard video player GPS air bags See the newly behaviors for BMW 740E, auto pilot voice command When we think about the above properties and behaviors, we can see each an every property and behavior which is related to the first BMW car have been joined to the BMW 740E car. In other words, the first BMW car properties and behaviors have been inherited to the BMW 740E car. The things which are related to a class goes to another class is called Inheritance. We need to make a joint between two classes to do it. The first class is called as su...