Sail E0 Webinar
Question


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
Options:
A .  10 100
B .  100 10
C .  10 10
D .  100 100
Answer: Option A

Answer:b
Explanation:
In this program, We got an error in overloading because we didnt invoke the 

destructor of parent.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers