super() and Method Overriding
Premium
Inheritance gives you the parent's behaviour for free. Sometimes you want to change it for the subclass, or build on top of it. That is what overriding and super() are for.
Inheritance gives you the parent's behaviour for free. Sometimes you want to change it for the subclass, or build on top of it. That is what overriding and super() are for.