Badly tracked file remove.

This commit is contained in:
Kolan Sh 2014-07-29 14:51:56 +04:00
parent e6203433ae
commit bbd564c126
1 changed files with 0 additions and 31 deletions

View File

@ -1,31 +0,0 @@
#include <iostream>
using namespace std;
class A1 {
public:
A1 () {
cout << "A1() called" << endl;
}
virtual ~A1 () { // won't be called if non-virtual
cout << "~A1() called" << endl;
}
};
class A2 : public A1 {
public:
A2 () {
cout << "A2() called" << endl;
}
~A2 () {
cout << "~A2() called" << endl;
}
};
int main (int argc, char *argv[])
{
A1 *ap = new A2();
delete ap;
}