Dynamic Method Dispatch? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Dynamic Method Dispatch?

Why methods are overriden by a subclass but not the data members while reffering subclass object with superclass variable.

8th Nov 2017, 6:43 PM
Rahul Verma
Rahul Verma - avatar
1 Answer
- 1
you can do it.
12th Nov 2017, 5:10 AM
shobhit
shobhit - avatar