From 07883a9e3b7ec26fc662b14d0ed85276f533d2da Mon Sep 17 00:00:00 2001 From: Valk Richard Li <48872266+ValKmjolnir@users.noreply.github.com> Date: Tue, 1 Oct 2019 23:05:37 +0800 Subject: [PATCH] Delete newm.cpp --- version0.15/version0.15.1/newm.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 version0.15/version0.15.1/newm.cpp diff --git a/version0.15/version0.15.1/newm.cpp b/version0.15/version0.15.1/newm.cpp deleted file mode 100644 index 2484beb..0000000 --- a/version0.15/version0.15.1/newm.cpp +++ /dev/null @@ -1,29 +0,0 @@ -#include -using namespace std; -class a -{ - public: - int A; - virtual void setA(int t)=0; - virtual int returnA()=0; -}; -class b:public a -{ - public: - void setA(int t) - { - A=t; - return; - } - int returnA() - { - return A; - } -}; -int main() -{ - b m; - m.setA(1); - m.returnA(); - return 0; -}