top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is pure virtual function?

0 votes
243 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?

+2 votes

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

...