Student.hpp 355 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 14 15
    explicit Student(int age, const std::string name = "", const std::string school = "") : Human(age, name), school_(school) {};
    virtual ~Student() override;
    virtual void print() const override;
};