May 2019
Intermediate to advanced
546 pages
12h 41m
English
When we define a class and want to use the functionality of the abstract class, we extend the class with our abstract class. This class will be a child class and we take over the complete functionality, written in the abstract class. The only thing we need to do is to implement the abstract methods of the abstract class into the child class and implement the logic for these methods. This is what we call inheritance. The child class uses the same functionality as the parent class (it inherits the logic from the abstract class) and can overwrite some additional functionality (the abstract methods).
In the following code, I wrote two classes that use the functionality of our Movie abstract class, the ActionMovie ...
Read now
Unlock full access