Question
1.
#include
2.
using namespace std;
3.
class Parent
4.
{
5.
public:
6.
Parent (void)
7.
{
8.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
class Parent
4.
{
5.
public:
6.
Parent (void)
7.
{
8.
cout
Answer: Option A
Was this answer helpful ?
Answer:b
Explanation:In this program, We got an error in overloading because we didnt invoke the
destructor of parent.
Was this answer helpful ?
More Questions on This Topic :
Question 5.
Where is the derived class is derived from?
....
Question 6.
Pick out the correct statement.
....
Submit Solution