Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Help me with an explicit destructor call please
c++
destructors
oop
2 Votes
3 Answers
2nd Apr 2023, 8:24 AM
Иван Паровозов
What is constructor and destructor in c++?
c++
1 Vote
4 Answers
14th Sep 2017, 4:45 PM
Bhupendra Dangwal
Why we need constructor and destructor
c++
0 Votes
2 Answers
14th Oct 2017, 6:19 AM
Ponraj Hbk
Why destructor can not be more than one in c++?
c++
6 Votes
20 Answers
14th Apr 2017, 11:31 AM
Vishesh Saxena
Benefits of virtual destructor in abstract classes?
abstract-classes
c++
destructors
virtual
2 Votes
3 Answers
7th Nov 2016, 2:15 PM
Hector Sulbaran
Why we can't overload destructor ?
c++
destructors
0 Votes
2 Answers
6th Feb 2017, 11:18 AM
Nilesh Tawar
11 destructor and 2 constructor for 5 objects???
c++
constructors
destructors
vector
4 Votes
4 Answers
21st Jan 2018, 3:33 PM
Petros Simidyan
Interview Question: why we need a virtual destructor in C++?
c++
interview
5 Votes
4 Answers
9th Apr 2018, 3:20 PM
vardanator
constructor and a destructor for the ''Mother'' class.
explain
kinldy
0 Votes
4 Answers
12th Oct 2019, 2:34 PM
Syed Shahrose
Why 6 calls to destructor for 5 objects?
c++
constructor
copy-constructor
destructor
vector
1 Vote
1 Answer
30th Jun 2022, 9:31 PM
Edward Finkelstein
How destructor works in c++ ?
c++
how
0 Votes
1 Answer
12th Jan 2017, 5:18 AM
Suman Dey
Why can't we declare destructor as private?
c++
1 Vote
1 Answer
21st Apr 2018, 7:00 PM
$¢𝐎₹𝔭!𝐨𝓝
Why destructor is used in the class??
beginner
c++
class
destructors
sololearn
1 Vote
1 Answer
22nd Oct 2019, 7:09 AM
Malem Yengkhom
What is destructor sign? Why it is used?
c++
0 Votes
6 Answers
1st Nov 2016, 4:21 AM
ankeet mishra
how to create a destructor of a class?
classes
python
2 Votes
4 Answers
29th Oct 2016, 12:28 AM
Shekhar Bahuguna
what is the difference between constructor and destructor
c++
comments
1 Vote
4 Answers
23rd Sep 2016, 5:32 AM
SAHIB SHAIKH
how will this constructor and destructor works?
c++
0 Votes
2 Answers
28th Jan 2017, 6:11 PM
Monisha Mp
i am confused about the output of a destructor qusetion,what does destructor ACTUALL do when it is called....
c++
destructor
1 Vote
2 Answers
29th Sep 2016, 7:15 AM
iwbtg_wang
Is there any disadvantages of constructor and destructor ?
c++
class
constructor
destructor
0 Votes
4 Answers
4th Feb 2019, 4:34 PM
Sahil Bhakat
Fill in the blanks to declare a destructor for the class Book.
c#
4 Votes
5 Answers
10th Feb 2018, 2:20 AM
Mesut Alcicek
can we use a function to call destructor
c++
0 Votes
3 Answers
4th Oct 2016, 4:02 PM
Nikhil Jaiswal
What is the use of constructor and destructor in c++?
answer
c++
constructor
destructor
give
use
3 Votes
4 Answers
15th Feb 2018, 1:37 PM
Prankur Singrol
Why do we make a destructor in a class?
c++
oops
sololearn
0 Votes
2 Answers
2nd Jun 2020, 7:07 AM
Introvert
When does the destructor called in the program?
oop
0 Votes
2 Answers
15th Mar 2018, 6:33 PM
Tayyab arifeen
RAII for thread
c++
destructor
detach
joinable
thread
0 Votes
2 Answers
15th Apr 2021, 9:11 AM
Ketan Lalcheta
Please give syntax to creat a constructor and destructor inside a class
c++
constructors
destructors
5 Votes
6 Answers
7th Jul 2017, 12:27 PM
KABILESH KANNAN
Why the output is: "Constructor Constructor Destructor Destructor"???
c#
destructors
0 Votes
2 Answers
6th Aug 2017, 11:04 AM
Raffi Ohannesian
I didn't know that the destructor could be called explicitly...
c++
class
destructor
explicity
1 Vote
2 Answers
16th Mar 2020, 3:57 PM
Сергей Куликов
What is the benifit of making virtual destructor in c++?
c++
destructors
1 Vote
3 Answers
16th Jun 2019, 7:37 PM
Ujjawal Dubey
C++: Why constructor cannot be virtual but destructor can?
c++
virtualfunction
1 Vote
1 Answer
1st Oct 2018, 4:26 PM
Sumit
Which file does Destructor need to be defined
c++
0 Votes
1 Answer
20th Nov 2018, 11:02 PM
Jimmy Chen
What is the different between constructor and destructor ?
c++
java
0 Votes
3 Answers
30th Oct 2017, 2:20 PM
Md Tarique Aziz
is there any way to visualise how a destructor works
c++
0 Votes
5 Answers
30th Jul 2016, 11:44 AM
gowtham
What happens when we use virtual destructor in a class
c++
1 Vote
2 Answers
25th Apr 2018, 9:51 AM
Suraj Manchala
No destructor in Java? What is the best way to create destructors in java
bycall
callbye
delete
garbage
java
10 Votes
10 Answers
3rd Sep 2018, 8:10 AM
Charan Leo25
Why is a destructor called when an object is created?
c#
inheritance
-2 Votes
6 Answers
11th Aug 2016, 12:57 PM
Sjardi Djoy Willems
What is diffrence between constructor and destructor in C++?
c++
inheritance
1 Vote
2 Answers
26th Aug 2017, 3:09 PM
Ulaankhuu Bymbasuren
In C++, execution of constructor and destructor while inheritance ?
c++
constructor
destructors
inheritance
0 Votes
3 Answers
15th Apr 2018, 1:32 PM
ARIF ANSARI
Why destructor is called 3 time can u please explain?
@sololearn
0 Votes
1 Answer
9th Jun 2023, 7:54 PM
Harsh Agrawal
what is a destructor ? can it be overload ?
constructors
destructors
functions
3 Votes
2 Answers
11th Jan 2017, 5:18 AM
omkar patil
Compiler doesn't recognize any of destructor operators in this code. Why?
abstract-classes
c++
6 Votes
2 Answers
14th Apr 2017, 2:19 AM
Gigi
is there a difference between overloading and overriding?and can destructor be overloaded?
cpp
5 Votes
5 Answers
12th Mar 2017, 10:31 AM
Edwin Bello
Can you help me understand Constructor and Destructor of OOP??
c++
class
constructor
destructors
oop
0 Votes
2 Answers
20th Oct 2018, 2:59 PM
Md Ibrahim (West Bengal, India)
Which operator is used for the destructor in Java?
java
0 Votes
2 Answers
2nd May 2017, 9:31 AM
Ali Abd El Salam
why destructor in this code doesn't runs in visual studio's console application
c++
constructor
destructors
error
sololearn
2 Votes
5 Answers
27th Aug 2018, 4:56 PM
Suraj Jha
Why and when should I use a destructor in Python?
classes
destructors
function-arguments
functions
objects
python
0 Votes
1 Answer
26th May 2020, 12:57 PM
Ankith M Kashyap
What is the different between overloading and overridden? Does constructor and Destructor same?
c++
constructors
destructors
operator-overloading
overriden
sololearn
4 Votes
3 Answers
24th Jul 2018, 1:21 AM
ANNM
In the code below, if I comment out the "delete" line, the output from the destructor does not appear.
destructor
invoke
main
outside
when
15 Votes
9 Answers
24th Apr 2019, 2:49 AM
Sonic
Is it necessary to use destructor when you have garbage collector in dotnet?
c#
java
3 Votes
5 Answers
21st Dec 2016, 12:31 PM
الواجد
Is virtual destructor needed even if we have other virtual method
c++
destructor
virtual
0 Votes
1 Answer
13th Jan 2025, 6:14 PM
Ketan Lalcheta
Ask a question
Ask a question
< Previous
1
2
3
Next >
Hot today
How to allow one instance of exe
1 Votes
Reverse observer pattern : remove dynamic_cast
2 Votes
purchase of a subscription
1 Votes
What has happened?
1 Votes
Theater management help me
2 Votes
seats = 100 (blank) seats > 0: print "sell ticket" (blank) = seats - 1
0 Votes
What should I add/improve ?
1 Votes
Flight tracker coding foundation help me
1 Votes
Should You Specialize or Diversify in Programming?
1 Votes
Tools for web design?
1 Votes