What is pure virtual function in C++? tccicomputercoaching.com
- May 30, 2019
- Posted by: Riddhi Dhandha
- Category: C++ Programming Langauge at TCCI
A pure virtual method is an abstract method with no implementation that must be implemented by all subclasses of the owner class. It also refer that the owner class is an abstract class and one can’t instantiate an object of it.
virtual void show()=0; // pure virtual function
class derived : public base
cout<<“child class implement pure virtual function”;
Output: class implement pure virtual function
TCCI Computer Coaching Institute teaches C++ in Bopal and Satellite in Ahmedabad.
Online Coaching is available for any person.
Lecture is conducted as per student flexible time.
Call us @ 9825618292
Visit us @ http://tccicomputercoaching.com/workshop/