Monday 25 February 2019

What is an abstract class in c++? tccicomputercoaching.com

In C++ an abstract class is a class that is designed to be specifically used as a base class. This class is declared using “abstract” keyword. An abstract class cannot be instantiated, which means you are not allowed to create an object of it.


Purpose of an abstract class:

The purpose of an abstract class is to define some common behaviour that can be inherited by multiple subclasses, without implementing the entire class.

A class is abstract if it has at least one pure virtual function.

To know more in detail about an abstract class in c++.

You can Join TCCI Computer Coaching Institute in Ahmedabad.

We teach all programming Languages offline and online as per student flexible time.

Call us @ 9825618292

Visit us@ http://tccicomputercoaching.com/engineering-courses/

No comments:

Post a Comment