October 2018
Intermediate to advanced
370 pages
9h 15m
English
Before moving forward, it is very important to understand how to find a relationship between different classes. How do we know that a student can be inherited from Person or that Circle can be inherited from the Shape class? If the designed hierarchy is correct, the child class must be a type of the parent class and both classes must have an is-a relationship between them. Take a look at the following examples:
Most of these examples are correct but a few of them are completely false. Student is a person is correct because students have all the attributes and behaviors that a person has. Students ...
Read now
Unlock full access