摘要:
#include <iostream> class Animal { public: virtual void talk() { std::cout << "Animal talk" << std::endl; } }; class Dog: public Animal { public: void 阅读全文
摘要:
#include <iostream> class Person { public: static int age; }; class Student: public Person { public: static int age; int grade; }; int Person::age = 5 阅读全文