标签:span int 多态 name ret out turn bbb aaa
#include <iostream> using namespace std; class A { public: void f() { cout << "AAAAAAAAAA" << endl; } }; class B :public A { public: virtual void f() { cout << "BBBBBBBBBBB" << endl; } }; int main() { A *a = new B(); a->f(); return 0; }
标签:span int 多态 name ret out turn bbb aaa
原文地址:http://www.cnblogs.com/sangyangyang/p/6547740.html