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.

Answer Posted / poonam

Virtual function is a function that uses keyword "virtual"
with the datatype of the function. When the base class as
well as the derived class contains a function both having
the same name, just to resolve ambiguity and copy of the
same data again and again we use the keyword "virtual"
preeceeding it. It is used to achieve poymorphism.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between inheritance and polymorphism?

1074


can we make game by using c

4221


is there any choice in opting subjects like 4 out of 7

2241


what type of question are asked in thoughtworks pair programming round ?

2267


write a program to find 2^n+1 ?

2126


How to call a non virtual function in the derived class by using base class pointer

6694


Can you inherit a private class?

1144


What is overloading in oops?

1213


What are the important components of cohesion?

1077


What are the features of oop?

1258


What is overloading in oop?

1050


what are the ways in which a constructors can be called?

2203


What is destructor give example?

1117


Why do we use polymorphism?

1129


What is coupling in oops?

1220