摘要:
git clone http://github.com/CosmosHua/locate new git clone http://github.com/CosmosHua/locate.git new git clone git://github.com/CosmosHua/locate new 阅读全文
摘要:
1.多态性 向不同对象发送同一消息,不同的对象在接受时会产生不同的行为 2.虚函数 使用基类的指针,指向派生类的对象,调用虚函数的时候,最后调用的是派生类的函数 #include <iostream> using namespace std; class Shape {protected: int 阅读全文