20 lines
630 B
C++
20 lines
630 B
C++
|
|
#ifndef EXAMPLE24_STUDENTASSISTANT_H
|
|
#define EXAMPLE24_STUDENTASSISTANT_H
|
|
|
|
#include <iostream>
|
|
|
|
class StudentAssistant : public Assistant, public Student {
|
|
public:
|
|
StudentAssistant(std::string n, std::string f1, double g, std::string f2, std::string s) :
|
|
Assistant(n, f2, s), Student(n, f1, g) {
|
|
}
|
|
virtual ~StudentAssistant() {
|
|
}
|
|
void print() const {
|
|
std::cout << "Student-Assistant: " << Student::name << " " << Student::faculty << " "
|
|
<< avgGrade << " " << Assistant::faculty << " " << subject << std::endl;
|
|
}
|
|
};
|
|
#endif //EXAMPLE24_STUDENTASSISTANT_H
|