C++純虛函數

抽象基類:ios 函數調用時,形參不可以是抽象基類,而應該是「指針」或者是"引用"。函數 // test.cpp : 定義控制檯應用程序的入口點。 // #include "stdafx.h" #include <cstdlib> #include <new> #include <iostream> using namespace std; class Base { int a; publi
相關文章
相關標籤/搜索