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 constructor cannt be declar virtually?
why destructor cannt be overloaded?

Answers were Sorted based on User's Feedback



why constructor cannt be declar virtually? why destructor cannt be overloaded?..

Answer / subhashish sen

Constructor can't be virtual,becoz constructor is an entity
which initializes V-table(V-table contains addrress of all
the virtual functions of class).So if we declare constructor
as virtual the who will intialize V-table for this constructor.

Destructor can not be overloaded simply becoz we cant
provide argument to a destructor and also its going to
release the memory when an object goes out of scope.

Is This Answer Correct ?    20 Yes 0 No

why constructor cannt be declar virtually? why destructor cannt be overloaded?..

Answer / saurabh

destructors ae not overloaded as its mere function is to
release memory ,and the objects which are going to die
soon...and u r looking for other ways to kill those objects.

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More OOPS Interview Questions

write string class as your own class in java without using any built-in function

0 Answers  


Which keyword is written to use a variable declared in one class in the other class?

5 Answers   TCS,


What is the default size allocated for array in the statement if size not specified " int a[] "

4 Answers   CTS,


officer say me - i am offered to a smoking , then what can you say

0 Answers  


all about pointers

2 Answers  


What are the important components of cohesion?

0 Answers  


what is the new version of oops

0 Answers   Ignou,


Child cObj = new Parent() Wahts the output ?

8 Answers   Patni, TCS,


difference between class and object

10 Answers   Chandan, IBM, Magic Soft,


Templates mean

0 Answers  


What is oop in simple words?

1 Answers  


Describe these concepts: Polymorphism, Inheritance and Abstraction.

0 Answers   TCS,


Categories