Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

What is pure virtual function?

A virtual function whose declaration ends with = 0 is called a pure virtual function. For

class Weapon



virtual void features() = 0;


pure virtual function

A class containing pure virtual function is known as abstract class. This concept is applicable in Inheritance only.

Pure virtual function is declared in parent class and can’t create object of parent class.
Pure virtual function is redefined in child class.

To learn more about C++ .

Call us @ 9825618292

Visit us@



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s