0
the difference between inheritance and polymorphism?
Very confused pls help
2 Answers
0
Inheritance is about the specification and generalization of the class(cat iherits from animais). Polymorphism is about using the same methods with other types(Method add can receive integers to sum numbers or strings to cocatenate them.
0
Inheritance - inherits characteristics of base class then extending it. I am your father(base class) and the son has a mole in his nose(extended characteristic) in which the father does not possess. Polymorphism - taking many forms