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.
20 lines
463 B
20 lines
463 B
3 years ago
|
//
|
||
|
// Created by lensferno on 2022/3/30.
|
||
|
//
|
||
|
|
||
|
#include <sstream>
|
||
|
#include "Teacher.h"
|
||
|
|
||
|
Teacher::Teacher(const Staff &staff, const std::string &title) : Staff(staff), title(title) {}
|
||
|
|
||
|
std::string Teacher::toString() {
|
||
|
std::stringstream out;
|
||
|
out
|
||
|
<< Staff::toString() << '\n'
|
||
|
<< "title: " << title << '\n';
|
||
|
|
||
|
return out.str();
|
||
|
}
|
||
|
|
||
|
Teacher::Teacher(const Teacher &teacher) : Staff(teacher), title(teacher.title) {}
|