write a program to demonstrate,how constructor and
deconstructor work under multilevel inheritance

Answer Posted / nishi

Program is correct, only addition required is to call
destructor you need to call delete(pCObj) explicitly as you
have allocated memory dynamically.

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of stl containers?

652


a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.

1383


Is stl open source?

638


What do stl stand for?

646


What are stl algorithms?

627






What is stl in c++ with example?

639


What is the use of stl?

639


how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

1897


Why should a c++ programmer be interested in stl?

647


What is stl in oop?

684


What is a stl vector?

628


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

1859


Is there any error below, its a code to delete all entires from a map #include #include iostream.h int main() { int i =0; map TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }

1896


What is a standard template library (stl)?

651


What is meant by stl in c++?

657