mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-27 05:18:46 +08:00
Delete newm.cpp
This commit is contained in:
@@ -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;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user