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 {
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 {