#ifndef _INCLUDE_STUDENTB_H_ #define _INCLUDE_STUDENTB_H_ #include "student.h" class StudentB : virtual public Student { private: int kadai4; public: StudentB() : Student("", 0, 0), kadai4(0) { SetName(""); cout << "StudentB()" << endl; } StudentB(const char* name, int k1, int k2, int k4) : Student(name, k1, k2), kadai4(k4) { cout << "StudentB(" << name << "," << k1 << "," << k2 << "," << k4 << ");" << endl; } void SetKadai4(int k4) { kadai4 = k4; } int GetKadai4() { return kadai4; } int GetSum(); void CalcAve(); }; #endif