Can 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.

Sizin İçin Seçtik  Bankalar para arzının nasıl arttırır?

Leave a Reply

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