0

the difference between inheritance and polymorphism?

Very confused pls help

24th Nov 2016, 2:44 AM
julio
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.
25th Nov 2016, 9:16 AM
Felipe Cruz
Felipe Cruz - avatar
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
2nd Dec 2016, 8:41 AM
acpa