//动物类 class Animals{ public: Animals() { } ~Animals() { } } //鸟类 继承动物类 class Birds:public Animals{ public: Birds() { } ~ Birds() { } }