Prefix "virtual" in methods (C++) | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 4

Prefix "virtual" in methods (C++)

What does it mean the prefix virtual in a method and when is it used?

9th Dec 2017, 11:41 AM
Javier Monreal Trigo
Javier Monreal Trigo - avatar
1 Réponse
+ 3
It is used when their is two way for a class and the value is confused where to go so... We use virtual keyword
9th Dec 2017, 2:18 PM
Game Fear
Game Fear - avatar