What is the output of the following C++ code? #include using namespace std; class A { public: A(int n ) { cout


What is the output of the following C++ code?


#include
using namespace std;
class A
{
public:
A(int n )
{
cout <>
}
};
class B: public A
{
public:
B(int n, double d)
: A(n)
{
cout <>
}
};
class C: public B
{
public:
C(int n, double d, char ch)
: B(n, d)
{
cout <>
}
};
int main()
{
C c(5, 4.3, 'R');
return 0;
}



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here