Inheritance
Premium
In OOP I you defined a class from scratch every time. When two classes share a lot of behaviour, you can have one inherit from the other and reuse what is already there.
In OOP I you defined a class from scratch every time. When two classes share a lot of behaviour, you can have one inherit from the other and reuse what is already there.