Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef Person_H
- #define Person_H
- #include <iostream>
- using namespace std;
- class Person
- {
- public:
- string id;
- string name;
- string lastName;
- string rank;
- string nationality;
- Person(string id, string name, string lastName, string rank, string nationality);
- string getId()
- {
- return id;
- };
- string getName()
- {
- return name;
- };
- string getLastName()
- {
- return lastName;
- }
- string getRank()
- {
- return rank;
- }
- string getNationality()
- {
- return nationality;
- }
- void introduce()
- {
- cout << "Mine id is: " + id << endl << "My name is: " + name + " " + lastName <<
- + "." << endl << "Mine rank is: " + rank << + " and I'm from " + nationality;
- }
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement