What is a pure virtual function in C++?

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 {

Sizin İçin Seçtik  What is the base class from?

Leave a Reply

Your email address will not be published. Required fields are marked *