SAS/Course.h

31 lines
488 B
C++

/*
* ¿Î³Ì±íDAO
*/
#ifndef COURSE_H
#define COURSE_H
#include<string>
using std::string;
class Course
{
public:
Course() { ; }
Course(string id, string name) {
this->id = id;
this->name = name;
}
string getId() { return id; }
void setId(string id) { this->id = id; }
string getName() { return name; }
void setName(string name) { this->name = name; }
string toString() {
return id + "\t" + name;
}
private:
string id;//¿Î³ÌºÅ
string name;//¿Î³ÌÃû
};
#endif // !COURSE_H