Can a pure virtual function have a body?
Yes, it can. One can call this function either by referring to it in the constructor/destructor of an abstract class or directly - in overridden function of descendant one can call the pure virtual function with the body of ancestor through the scope resolution operator.

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Зарегистрируйся сейчас
или Подпишись на будущие тесты