Corsi
Accedi
Inizia a imparare l'IA
Corsi
Accedi
Inizia a imparare l'IA
Discussioni Q&A
Cerca
Cerca
Fai una domanda
Fai una domanda
Use of destructors cpp
cpp
destructor
2 Voti
5 Risposte
29th Mar 2020, 6:59 AM
bell
Is the working order of a constructor and a destructor in c++ different?
c++
1 Voto
3 Risposte
17th Mar 2019, 2:42 AM
Sagnik Ganguly
How can I use constructor and copy constructor and destructor for this program?
c++
class
fraction
0 Voti
1 Risposta
26th Jan 2022, 8:08 AM
Nadia
I don't understand why my destructor is not working. Can anybody explain why ?
destructors
1 Voto
2 Risposte
17th May 2019, 11:15 AM
Debraj Singh
if a class doesn't have a destructor defined, what happens when the object is destroyed?
c#
destructors
2 Voti
5 Risposte
16th Apr 2016, 12:36 AM
Greg Mavhunga
Inheritance
c++
constructors
destructor
inheritance
2 Voti
2 Risposte
14th Dec 2018, 4:13 PM
Nikola
is it necessary to call a destructor when we use delete function?
c++
destructors
0 Voti
2 Risposte
15th Aug 2017, 8:46 AM
Mehak Nargotra
Is it a must constructor name be the same as destructor name?
c#
constructors
destructors
1 Voto
1 Risposta
27th Sep 2016, 5:12 PM
kayode emmanuel
Pls explain what is constructor and destructor in php?... I'm confused :(
constructors
destructors
php
1 Voto
1 Risposta
26th Aug 2017, 2:06 PM
dinesh yoga
Why does this code print A twice?
c++
destructor
2 Voti
1 Risposta
8th Jun 2018, 10:44 AM
Rabilu Ibrahim Muhammad
What is Constructor and Destructor in C++.And why we use it....please explain me with best way.....
c++
constructors
destructors
2 Voti
3 Risposte
13th Oct 2019, 6:01 AM
💘 Ŝαđᵃ𝐦 ʰ𝐔ⓢ𝔰ÃιŇ 🎧
Can you tell me why java don't have a destructor class like C# ?
java
0 Voti
3 Risposte
9th Sep 2016, 10:18 PM
Sandile Mtshali
Why this codE has 21 output??Is unset means object destroyed???
constructor
destructor
0 Voti
2 Risposte
3rd Jun 2019, 6:18 PM
Iqra
How can we say that the object is destroyed or how the destructor be called?
c#
inheritance
0 Voti
3 Risposte
27th Jul 2016, 10:13 AM
Dakilang Hokage
What are the uses of destructor's in c++?
c++
destructor
1 Voto
2 Risposte
5th Oct 2017, 5:19 PM
Sophia
I don’t understand the point of an object with destructors and constructors
constructor
destructor
object
1 Voto
5 Risposte
12th May 2018, 5:53 PM
Daniel
Why this code is printing obj 2 times?.. How's it possible to call destructor by object in main function?
c++
coding
oop
program
0 Voti
3 Risposte
22nd May 2022, 8:06 PM
Muhammad Talha Atif
How to destroy object in c++
c++
destructor
0 Voti
1 Risposta
3rd Mar 2018, 7:38 AM
Тимур Алиев
I have a question about vector (read description)
c++
class
destructor
vector
4 Voti
12 Risposte
9th Apr 2018, 1:07 AM
ajbura
What is the purpose of a pure virtual destructor?
c++
destructor
pure
virtual
7 Voti
2 Risposte
23rd Apr 2019, 10:16 PM
Sonic
C++ Fill in the blanks to define a destructor for class ''MyClass'', which prints some text in its body on the screen.
c++
destructors
0 Voti
6 Risposte
29th Dec 2016, 4:05 PM
Anees Hassan
Can anyone plz elaborate the calling of constructor and destructor by giving some program as example?
c++
constructors
0 Voti
1 Risposta
23rd Jul 2016, 7:21 PM
Kaivalya Dalvi
Did I understand correctly this C++ challenge code?
c++
destructor
vector
1 Voto
1 Risposta
8th Oct 2018, 7:55 AM
fra
When we create objects of one class its constructor is invoked and we call its destructor then can we again use the object after
constructors
3 Voti
2 Risposte
24th Oct 2021, 12:55 PM
Abhishek Pandey
Can we destroy an instantiated object manually and call its destructor before we exit the scope which it was declared? (C#)
c#
destroying-object
destructors
0 Voti
2 Risposte
15th Feb 2017, 9:58 PM
SIMOMEGA
C++ Class Constructors and Destructors Access Specifiers
access-specifier
c++
class
constructor
destructor
1 Voto
3 Risposte
6th Sep 2020, 5:13 AM
Edward Finkelstein
Unexpected Inheritance Output
c++
constructor
destructor
inheritance
output
0 Voti
4 Risposte
21st May 2018, 4:51 AM
Michelle
How to comprare weak_ptr with shared_ptr
c++
circular
destructor
linked_list
memory
smart_pointer
1 Voto
4 Risposte
16th Aug 2021, 2:05 PM
Ketan Lalcheta
Why is the base class constructor called before the derived class and the derived class destructor called before based class destructor? Please I need brief explanation on this.
c++
inheritance
0 Voti
2 Risposte
6th Aug 2016, 3:10 PM
shola ola ibrahim
memory for class object having pointer as data member
c++
constructor
destructor
memory
pointer
0 Voti
1 Risposta
18th Jun 2020, 9:28 AM
Ketan Lalcheta
Somebody knows why it doesn’t output 4,2,3 but only number 3 in the linked list
algorythm
c++
class
constructor
destructor
inheritance
list
lists
sort
sorting
3 Voti
3 Risposte
15th Dec 2018, 7:22 PM
Nikola
__del__ method in python
class
collector
del
destruction
destructor
garbage
magic
object
oop
python
5 Voti
5 Risposte
31st May 2018, 3:04 PM
Jakub Mifek
Need for custom deleter
c++
constructor
customdeleter
destructor
heap
make_shared
memory
shared_ptr
smart_pointer
2 Voti
2 Risposte
6th Oct 2021, 8:32 AM
Ketan Lalcheta
Can someone explain how a destructor would work if I was to kill an enemy in a text-based game. Specifically the syntax I would use to make sure it was destructed once it's health reached 0
c++
classes
games
0 Voti
4 Risposte
2nd Aug 2016, 12:04 AM
The Klespyrian
Ho to delete pointers and free memory properly?
c
c++
delete
destructor
free
memory
pointers
2 Voti
3 Risposte
22nd Jan 2018, 2:47 AM
code learner
Why 14 is not printing? ..How to call base class parameterized constructor in derived class copy constructor in C++?
coding
constructor
cpp
cstring
destructor
exception
oop
python
vectors
what()
1 Voto
6 Risposte
11th Aug 2022, 12:58 PM
Muhammad Talha Atif
Output of C++ code
c++
class
constructor
destructor
increment
int
static
vector
0 Voti
2 Risposte
25th May 2021, 4:49 AM
Edward Finkelstein
Fai una domanda
Fai una domanda
Fai una domanda
Fai una domanda
< Precedente
1
2
3
Successivo >
Popolare oggi
Is it possible to convert .zip file to apk? If yes, how??
1 Votes
I think the heart system is ridiculous, 5 hearts that refill after like 5 hours? That is really just crazy to me.
2 Votes
Why can’t I use double “ in python?
0 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
0 Votes
Coding for Cybersecurity
0 Votes
Guys I don't know anything about cooding who can help me pls
0 Votes
Pointers in c#
0 Votes
2 cases not correct what's the problem
1 Votes
You’re free to give me your advice! 🚨
0 Votes
Salut tout le monde
1 Votes