+ 2

why do we need to declare the function as virtual? is there any limit on number of derived members that can call the function if it's not virtual?

14th Jul 2016, 4:34 AM
Rohit Ner
Rohit Ner - avatar
2 odpowiedzi
+ 1
Virtual keyword is used in inheritance
17th Jul 2016, 6:05 PM
Kamal Singh
Kamal Singh - avatar
+ 1
used for hybrid inheritance ....In which two base data members get inherited and confuses compiler ....
17th Jul 2016, 6:07 PM
Kamal Singh
Kamal Singh - avatar