Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is virtual function?

Answers were Sorted based on User's Feedback



what is virtual function?..

Answer / bhupendra singh

virtual function can be used to override the propertis of a
function.it is part of polymerphism.it is normaly used in inheritance.

Is This Answer Correct ?    0 Yes 0 No

what is virtual function?..

Answer / prashant kalmodiya

VIRTUAL FUNCTION ensures that correct function get called
at runtime

Is This Answer Correct ?    3 Yes 4 No

what is virtual function?..

Answer / sandeep kumar

a virtual function is a member function that you expect to be redefined in derived class when you refer to a derived class object using a pointer or a reference to the base class, you can call a virtual function for the object and executes the derived class version of the function

Is This Answer Correct ?    0 Yes 1 No

what is virtual function?..

Answer / susanta samal

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 ?    4 Yes 7 No

what is virtual function?..

Answer / ori

(this answer is more - a "use of virtual function")
One Important use of virtual function is - Aggregation of
object related to derivation class hirarcy, in to an other
class , by defining a pointer to the base class (of
hirarchy) as one of the member objects of the other class.

Is This Answer Correct ?    2 Yes 5 No

what is virtual function?..

Answer / varsha vilas kalebag

virtual function is ended with null

virtual function=o

Is This Answer Correct ?    26 Yes 132 No

Post New Answer

More OOPS Interview Questions

suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?

3 Answers   EA Electronic Arts,


What is the difference between class and structure?

7 Answers  


Can destructor be overloaded?

0 Answers  


What is a unary operator?

5 Answers  


What is the real time example of inheritance?

0 Answers  


What are oops methods?

0 Answers  


What is class and object with example?

0 Answers  


Tell us about yourself.

47 Answers   ABB, Amazon, Fidelity, Flextronics, Franklin Templeton, HCL, Hexaware, IBM, Impetus, Infosys, Reliance, Rofous, Silgate, Sutherland, TCS, Thomson Reuters, Virtusa, Wipro,


What is virtual Function.

1 Answers   Wipro,


to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123

2 Answers  


What does and I oop mean?

0 Answers  


What is abstract class in oop?

0 Answers  


Categories