Student.hpp 356 Bytes
Newer Older
刘睿博's avatar
ver 1.0  
刘睿博 committed
1 2 3 4 5 6 7 8 9 10
#pragma once

#include "Human.hpp"

class Student : public Human
{
private:
    /* data */
    std::string school_;
public:
刘睿博's avatar
1  
刘睿博 committed
11
    Student() = delete; 
刘睿博's avatar
ver 1.0  
刘睿博 committed
12 13
    explicit Student(int age, const std::string name = "", const std::string school = "") : Human(age, name), school_(school) {};
    virtual ~Student() override;
刘睿博's avatar
刘睿博 committed
14
    virtual char* print() const override;
刘睿博's avatar
ver 1.0  
刘睿博 committed
15
};