class Girlfriend
{
private:
int age;
int weight;
public:
Girlfriend ( int age, int weight )
{
this->age = age;
this->weight = weight;
}
int GetAge ( void )
{
return this->age;
}
int GetWeight ( void )
{
return this->weight;
}
}
转载于:https://blog.51cto.com/13471554/2344851