What is Pure Virtual Function? Why and when it is used ?
Answer Posted / harry
pure virtual function declared in the base class.
pure virtual function having intializer=0;
pure virtual function also know as do nothing function &
dummy function.
class contain atleast one pure virtual function.
object cannote be create of that class in which pure
virtual function are declared and that class are know as
abstract class.
Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
Can member data be public?
What is a string example?
Is it possible for the objects to read and write themselves?
What is size of string in c++?
What is ios class in c++?
Why are pointers used?
Why is it necessary to use a reference in the argument to the copy constructor?
What is c++ and its features?
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
Carry out conversion of one object of user-defined type to another?
what is upcasting in C++?
What are the various arithmetic operators in c++?
How do c++ struct differs from the c++ class?
What is the object serialization?
Why iomanip is used in c++?