Prefix "virtual" in methods (C++) | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответ
+ 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