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

#include "Human.hpp"

class Student : public Human
{
private:
    /* data */
    std::string school_;
public:
    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;
};