C++ delete – Page 2 – Enpatika
Skip to content
Yeni Enpatika Logo

Enpatika

En Güncel Oyun ve Sistem Gereksinimleri Sitesi

  • Ana Sayfa
  • Gizlilik Politikası
  • Telif Hakları
  • İletişim
  • taraftar tv apk

C++ delete

What is destructor explain with syntax?

1 April 2022 Enpatika.com Genel

A destructor is a special member function that works just opposite to constructor , unlike constructors that are used for initializing an object, destructors destroy (or delete) the object. Syntax of Destructor ~class_name() { //Some code }

Read more

When a destructor is called in C++ Mcq?

1 April 2022 Enpatika.com Genel

2. When a destructor is called? Explanation: The destructor is called just before the object go out of scope or just before its life ends . This is done to ensure that all the resources reserved for the object are used and at last, are made free for others.

Read more

Are destructors always called?

1 April 2022 Enpatika.com Genel

yes, when you delete something, the destructor is called . 2. When the destructor of the linked list is called, it’s objects’ destructor is called.10 Nis 2012

Read more

Posts pagination

«Previous Posts 1 2
WordPress Theme: Gridbox by ThemeZee.