Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок+ 2
Whats the difference between virtual and pure virtual function?
syntax: virtual functionname(); pure virtual virtual functionname()=0;
1 ответ
+ 3
virtual function can have actual implemntation where it was declared
pure virtual functions does not have and the responsibility to implement it goes to any class which inherit the class which declared it
without implementing pure virtual function you will have compile error