#ifndef STUDENT_H #define STUDENT_H #include class Student : public Human { public: Student( const QString &name, const QDate &birthday ) : Human( name, birthday ), mCourseNumber( 0 ) { } virtual ~Student() { /* did not survive the session */ } quint8 courseNumber() const { return mCourseNumber; } void moveToNextCourse() { ++mCourseNumber; } virtual void prepareForSession() { doNothing(); } virtual void doNothing() { } protected: quint8 mCourseNumber; }; #endif // STUDENT_H