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


Please Help Members By Posting Answers For Below Questions

What is the real life example of polymorphism?

607


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).

1642


What is multilevel inheritance?

727


Get me a number puzzle game-program

1694


What is oops with example?

564






can inline function declare in private part of class?

3658


What type of loop is a for loop?

682


what type of questions

1697


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6151


What is encapsulation in oops?

536


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

1652


what is the drawback of classical methods in oops?

2920


What is the full form of oops?

609


What is difference between class and object with example?

564


What is the difference between a mixin and inheritance?

522