+ 1

What is difference between Virtual class and non-virtual class in c++?

I'm a c++ learner. I'm confused regarding virtual class and non virtual class. Can someone explain the difference between Virtual and non virtual classes.

30th Apr 2018, 11:08 AM
Waqas Ahmed
Waqas Ahmed - avatar
1 Antwort
0
Virtual class has to have derieved classes. It cannot do anything by itself. Non virtual class is ready to make an instance from it.
14th May 2018, 2:55 PM
Michał Biernacki
Michał Biernacki - avatar