c/c++课的作业合集,都是很简单的文件。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
622 B

#ifndef WORK20220325_PERSON_H
#define WORK20220325_PERSON_H
#include <string>
#include "../../date/Date.h"
class Person {
protected:
std::string id;
std::string name;
char sex;
std::string identNumber;
Date birthday;
public:
const static char SEX_MALE = 'M';
const static char SEX_FEMALE = 'F';
Person(const std::string &id, const std::string &name, char sex, const std::string &identNumber,
const Date &birthday);
Person() = delete;
Person(const Person &person);
virtual std::string toString();
};
#endif //WORK20220325_PERSON_H