摘要: 介绍 本文介绍了c++中,虚函数的原理。 正文 首先看代码1: #include <iostream> using namespace std; class Animal{ public: // 虚函数 void speak(){ cout << "animal speaking " <<endl; 阅读全文
posted @ 2021-02-18 04:04 schaffen 阅读(280) 评论(0) 推荐(0) 编辑