A pure virtual function is a function that must be overridden in a derived class and need not be defined . A virtual function is declared to be “pure” using the curious =0 syntax. For example: class Base {
Read moreCan we call pure virtual function in C++?
You may call a virtual function as long as it is not a pure virtual function , and as long as you know that what you are calling is the method from the class itself and not expecting any polymorphism. Calling a pure virtual function from a constructor is undefined behaviour even if it has an implementation.
Read more