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 the difference between virtual function and
destoctor?



what is the difference between virtual function and destoctor?..

Answer / prabhakar

virtual function is just like a member function of a class.it is used to over loading mechanisam.it can be acesses by any object of either base class or derived class.
destructor is used to dellocate the memory of an object.it can call by using delete operator.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More OOPS Interview Questions

WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

1 Answers  


what is virtual function?

3 Answers  


Why is oop useful?

0 Answers  


What is an example of genetic polymorphism?

0 Answers  


What is meant by multiple inheritance?

0 Answers  


What are the three main types of variables?

0 Answers  


what is polymorpsim? what are its types?

8 Answers  


Is abstract thinking intelligence?

0 Answers  


char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output

9 Answers   Persistent,


What is the difference between Home and $Home?

2 Answers   TCS,


diff between Virtual mathod and abstract method?

1 Answers  


Why is there no multiple inheritance?

0 Answers  


Categories