#include <iostream>
#include <string>
using namespace std;
class cl1
{
public:
string str = "123 456 789";
};
class cl2 : public cl1
void print()
cout << str;
int main()
cl2 ggg;
ggg.print();
}:
#include <iostream>
#include <string>
using namespace std;
class cl1
{
public:
string str = "123 456 789";
};
class cl2 : public cl1
{
public:
void print()
{
cout << str;
};
};
int main()
{
cl2 ggg;
ggg.print();
}: