1
0
This commit is contained in:
Captain ALM 2022-12-16 10:02:16 +00:00
parent 672289a9cf
commit 798006c8d0
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -7,7 +7,7 @@ public:
A() { A() {
std::cout << "Class A Created\n"; std::cout << "Class A Created\n";
} }
~A() { virtual ~A() {
std::cout << "Class A Destroyed\n"; std::cout << "Class A Destroyed\n";
} }
}; };
@ -28,7 +28,7 @@ public:
C() { C() {
std::cout << "Class C Created\n"; std::cout << "Class C Created\n";
} }
~C() { virtual ~C() {
std::cout << "Class C Destroyed\n"; std::cout << "Class C Destroyed\n";
} }
}; };