Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję+ 3
When we create objects of one class its constructor is invoked and we call its destructor then can we again use the object after
When we create objects of one class its constructor is invoked and we call its destructor then can we again use the object after destruction?
2 odpowiedzi
+ 2
But, in c++, when i performed it it ran successfully.
+ 1
No. A System.NullReferenceException would be raise. (C#)
In others language should it be near the same.