#include <iostream>
#include <string>
using namespace std;
class Phone
{
public:
Phone(string name)
{
m_pName = name;
}
string m_pName;
};
class A
{
public:
A(string pname, string phoneName) : name(pname), p_phone(phoneName)
{
}
string name;
Phone p_phone;
};
class Person
{
public:
Person(int a, int b, int c) : a(a), b(b), c(c)
{
}
int a;
int b;
int c;
};
void test()
{
Person p(10, 20, 30);
Person p1(30, 40, 50);
cout << p.a << " " << p.b << " " << p.c << endl;
cout << p1.a << " " << p1.b << " " << p1.c << endl;
}
void test1()
{
A a("mmm", "apple");
cout << a.name << endl;
cout << a.p_phone.m_pName << endl;
}
int main()
{
test1();
return 0;
}