I have a class Parent
which has a method calculateRevenue();
I also have a class Child
that extends Parent
. What I want to do is have the same method name in Child
class calculateRevenue();
which would call the method of the Parent
class method, and then execute the Child
method.
Is this possible? Or the same name will override the method functionality without the ability to call the Parent
method?