Question #631

How can I make a certain method of a sub-class behave not as in an ancestor class?

Expert's answer

You have to redefine the method. To do this you have to create a method with the same name and parameters in the sub-class, but define a new body. This is called polymorphism.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS