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

Why do we use virtual functions?

Answer Posted / mona kawale

when there are two same classes in derived and base class then at the tym of running programm compiler get confuse about which function should b call first so it call derived class function automatically....but if we wrote base class function as virtual function then compiler will not get confuse.....

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is new keyword in oops?

1039


Is enum a class?

1056


Whats is abstraction in oops?

1070


what is graphics

2446


What is the advantage of oop over procedural language?

1079


Templates mean

2077


What is difference between abstraction and encapsulation?

1072


What is the difference between inheritance and polymorphism?

1108


Plese get me a perfect C++ program for railway/airway reservation with all details.

3896


class type to basic type conversion

2399


What is polymorphism in oop example?

1022


What is the problem with multiple inheritance?

1163


What is the main feature of oop?

1147


Why it is called runtime polymorphism?

1129


What are oops methods?

1002