Answer Posted / manjusinga
A pure virtual function is a function that must be
overridden in a derived class and need not be defined. A
virtual function is declared to be "pure" using the
curious "=0"
syntax:
class Base {
public:
void f1(); // not virtual
virtual void f2(); // virtual, not pure
virtual void f3() = 0; // pure virtual
};
| Is This Answer Correct ? | 16 Yes | 0 No |
Post New Answer View All Answers
What is abstraction encapsulation?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Is this job good for future? can do this job post grduate student?
Is data hiding and abstraction same?
what is the sylabus for priliminaries?
What is overloading in oop?
What is abstraction in oops with example?
Give two or more real cenario of virtual function and vertual object
What is the point of polymorphism?
What is abstraction example?
What is the point of oop?
#include
Why do we use polymorphism in oops?
What is object in oop with example?
Can a varargs method be overloaded?