#ifndef _PERSON_H_
#define _PERSON_H_
#include"String.h"
#include"InpException.h"
#include"Queue.h"
#include<iostream>
using namespace std;

class Person
{
protected:
	String fname;
	String lname;
	int age;
public:
	Person();
	Person(char *_fname,char *_lname,int _age);
	Person(const Person & tmp);
	~Person();
	//methods-accessors
	inline String GetFname() const { return this->fname; };
	inline String GetLname() const { return this->lname; };
	inline int GetAge() const { return this->age; };
	//
	//set-methods
	void SetFname(const String & _fname) { this->fname = _fname; };
	void SetLname(const String & _lname) { this->lname = _lname; };
	void SetFname(const char * _fname) {  };
	void SetLname(const char * _lname) { this->lname = _lname; };
	void SetAge(const int _age) { this->age = _age; };
	//
	friend void operator << (std::ostream & os,Person & tmp);
	friend void operator >> (std::istream & is,Person & tmp);
	void operator = (const Person & tmp);
	//inp-methods
	/*
	bool Inp_fname()
	{
		std::cout << "Введите имя:";
		std::cin >> this->fname;
		if(this->fname ==
		
	}
	void Inp_lname()
	{
		std::cout << "Введите фамилию:";
		std::cin >> this->lname;
	}
	void Inp_age()
	{
		std::cout << "Введите возраст:";
		std::cin >> this->age;
	}
	*/
};

#endif
Соседние файлы в папке MyException