#include<iostream>
#include<string>
using namespace std;
class Person
{
protected:
int age;
string name;
};
class Hobbies
{
protected:
string hobby;
};
class Student: public Person, public Hobbies
{
public:
Student(int _age, string _name, string _hobby)
{
age = _age;
name = _name;
hobby = _hobby;
}
void show()
{
cout << "Ten: " << name << endl;
cout << "Tuoi: " << age << endl;
cout << "Hobbies: " << hobby << endl;
}
};
int main()
{
Student a = Student(19, "Nguyen Dinh Tai", "Anime, Code, Movies");
a.show();
return 0;
}