Question
1.
#include
2.
using namespace std;
3.
class A
4.
{
5.
public:
6.
A(int n )
7.
{
8.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
class A
4.
{
5.
public:
6.
A(int n )
7.
{
8.
cout
Answer: Option A
Was this answer helpful ?
In this program, We are passing the value and manipulating by using the derived class.
Output:
$ g++ der.cpp
$ a.out
54.3R
Was this answer helpful ?
More Questions on This Topic :
Question 2.
Where is the derived class is derived from?
....
Question 3.
Pick out the correct statement.
....
Submit Solution