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

How is stl different from c++ standard library?

847


i wanted to know about questions about c,c++ , which is required for placements.... im a fresher

1796


Who wrote stl?

789


totoo po ba ang manga aliens!

2423


write a program that will accept a number and print.its equivalent in words the maximum input number is 9999

2599






To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command

1867


What are stl algorithms?

713


What is a stl vector?

710


What are the symptoms of stl?

700


Is string part of stl?

783


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

2069


In what scenario does the Logical file and Physical file being used?

2428


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

1949


Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A.Explain how a pointer to function can be declared in C++? B.List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header (“Include”) Files.

2414


how to use C++?

2157