摘要:
#include <iostream> class Animal { public: virtual void talk() { std::cout << "Animal talk" << std::endl; } }; class Dog: public Animal { public: void 阅读全文
posted @ 2022-07-06 19:05
thomas_blog
阅读(23)
评论(0)
推荐(0)
摘要:
#include <iostream> class Person { public: static int age; }; class Student: public Person { public: static int age; int grade; }; int Person::age = 5 阅读全文
posted @ 2022-07-06 17:32
thomas_blog
阅读(22)
评论(0)
推荐(0)

浙公网安备 33010602011771号