+ 2
what happens if destructor is not present?
7 Réponses
+ 1
nothing will happen :)
destructors are optional :)
they are not required to be present in your code.
0
not thing
0
destructors are optional... you can use them or not use them.... just in case: they are used to do stuff before deleting an object... like writing by console "destruction >:D!!"
0
destructor are not necessarily added.... a program can run successfully without using a destructor.
0
Our world will be safe
0
memory is not freed
- 11
the compiler will not let you create a class