top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

What is pure virtual function?

0 votes
54 views

Explain about pure virtual function

posted Nov 21, 2014 by Roshan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

A pure virtual function is a function which can be overridden in the derived class but cannot be defined. A virtual function can be declared as Pure by using the operator =0.
Example -.

Virtual void function1 () // Virtual, Not pure
Virtual void function2 () = 0 //Pure virtual
answer Nov 21, 2014 by Manikandan J
Similar Questions
0 votes

What is a pure virtual destructor in C++? What is its need, advantage and disadvantage, please explain with example?

+3 votes

Also provide some details on how virtual table get created and how that works?

+1 vote

When a function is declared as virtual and when a class ? Please explain with examples.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...