diff options
Update README.md
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | Sem. 06/README.md | 2 |
diff --git a/Sem. 06/README.md b/Sem. 06/README.md index 4d8cf9d..70f3ba3 100644 --- a/Sem. 06/README.md +++ b/Sem. 06/README.md @@ -118,7 +118,7 @@ int main() f(t); // Copy constructor
g(t); // nothing. We are passing it as a reference. We are not copying it!
- Test* ptr = new Test(); // Default constructor // we create a new object in the dynamic memory. The constructor must be invoked explicitly
+ Test* ptr = new Test(); // Default constructor // we create a new object in the dynamic memory. The destructor must be invoked explicitly (with delete)
delete ptr; // Destructor
|
