add destructor and copy constructor
This commit is contained in:
parent
c8880c3dbb
commit
c8cef29999
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,9 @@
|
|||
#include <iostream>
|
||||
|
||||
struct Example {
|
||||
Example();
|
||||
Example(); // constructor
|
||||
Example(const Example &); // copy constructor
|
||||
virtual ~Example(); // destructor
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue