Sign in to follow this  

virtual function is abstract

Recommended Posts

In C++, classes are abstract when they have at least one pure virtual function. This means that the function has no body for that type and may therefore not be called. As a consequence, the class cannot be instantiated (or else, you would run the risk of calling a function that does not exist).

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this