#include
using namespace std;
class baseclass{
public:
int number;
baseclass(){}
baseclass(int);
};
class derivedclass:public baseclass{
int number_derived;
derivedclass(){}
derivedclass(int);
baseclass::baseclass(int num)
{
number = num;
cout
}
derivedclass::derivedclass(int num)
number_derived = num;
int main()
baseclass Base(10);
derivedclass DBase(29);
return 1;
#include
using namespace std;
class baseclass{
public:
int number;
baseclass(){}
baseclass(int);
};
class derivedclass:public baseclass{
public:
int number_derived;
derivedclass(){}
derivedclass(int);
};
baseclass::baseclass(int num)
{
number = num;
cout
cout
}
derivedclass::derivedclass(int num)
{
number_derived = num;
cout
cout
}
int main()
{
baseclass Base(10);
derivedclass DBase(29);
return 1;
}