Can we call function in constructor in C++?

All the C++ implementations need to call the version of the function defined at the level of the hierarchy in the current constructor and not further. You can call a virtual function in a constructor .

Sizin İçin Seçtik  What is constructor and why it is used in C++?

Leave a Reply

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