IS-A
-
Is-A and Has-A Relationship in JavaStaticPL/JAVA 2020. 2. 5. 20:39
1. Overview IS-A Relationship: The concept of IS-A is totally based on Inheritance, which can be of two types Class Inheritance or Interface Inheritance. It is just like saying "A is a B type of thing". For example, Apple is a Fruit, Car is a Vehicle etc. Inheritance is uni-directional. For example, House is a Building. But Building is not a House. It is a key point to note that you can easily i..