why constructor cannt be declar virtually?
why destructor cannt be overloaded?
Answers were Sorted based on User's Feedback
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 |
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 |
Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?
why to use operator overloading
what is the difference between inter class and abstract class...?
when to use 'mutable' keyword and when to use 'const cast' in c++
What is function overloading and operator overloading?
write a programe to calculate the simple intrest and compund intrest using by function overlading
what is ns string? what is ns array?
What is difference between polymorphism and inheritance?
WHAT IS THE DIFFERENCE BETWEEN OBJECT BASED & OBJECT ORIENTD PROGRAMMING LANGUAGE.(GIVE AT LIST 4 PIONT)
me get an assignent n its question is this 1.creat a set as in math i.ea={1,2} 2.insert element in it3. delete element don,t repeat any element 4.union 5. intersection of two sets plz help me i always pray for u n send me at ayeshawzd@hotmail.com f u have c++ how to program 5th addition then it is the 10.9 question in 10th chapter exercise
Is react oop?
What is the difference between encapsulation and polymorphism?