Delete newm.cpp

This commit is contained in:
Valk Richard Li 2019-10-01 23:05:37 +08:00 committed by GitHub
parent 4cb52c15d0
commit 07883a9e3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 29 deletions

View File

@ -1,29 +0,0 @@
#include<iostream>
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;
}