what is virtual function?
Answer Posted / shekhar
virtual function is used to prevent from more times
calling.That means if a function is declared as virtual
then its def will be diferent in base class & derived class
Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is the real life example of polymorphism?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is multilevel inheritance?
Get me a number puzzle game-program
What is oops with example?
can inline function declare in private part of class?
What type of loop is a for loop?
what type of questions
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is encapsulation in oops?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
what is the drawback of classical methods in oops?
What is the full form of oops?
What is difference between class and object with example?
What is the difference between a mixin and inheritance?