Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Équipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
What is constructor and destructor in c++?
c++
1 Vote
4 Réponses
14th Sep 2017, 4:45 PM
Bhupendra Dangwal
Why we need constructor and destructor
c++
0 Vote
2 Réponses
14th Oct 2017, 6:19 AM
Ponraj Hbk
Why destructor can not be more than one in c++?
c++
6 Votes
20 Réponses
14th Apr 2017, 11:31 AM
Vishesh Saxena
Benefits of virtual destructor in abstract classes?
abstract-classes
c++
destructors
virtual
2 Votes
3 Réponses
7th Nov 2016, 2:15 PM
Hector Sulbaran
Why we can't overload destructor ?
c++
destructors
0 Vote
2 Réponses
6th Feb 2017, 11:18 AM
Nilesh Tawar
11 destructor and 2 constructor for 5 objects???
c++
constructors
destructors
vector
4 Votes
4 Réponses
21st Jan 2018, 3:33 PM
Petros Simidyan
Interview Question: why we need a virtual destructor in C++?
c++
interview
5 Votes
4 Réponses
9th Apr 2018, 3:20 PM
vardanator
constructor and a destructor for the ''Mother'' class.
explain
kinldy
0 Vote
4 Réponses
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 Réponse
30th Jun 2022, 9:31 PM
Edward Finkelstein
How destructor works in c++ ?
c++
how
0 Vote
1 Réponse
12th Jan 2017, 5:18 AM
Suman Dey
Why can't we declare destructor as private?
c++
1 Vote
1 Réponse
21st Apr 2018, 7:00 PM
$¢𝐎₹𝔭!𝐨𝓝
Why destructor is used in the class??
beginner
c++
class
destructors
sololearn
1 Vote
1 Réponse
22nd Oct 2019, 7:09 AM
Malem Yengkhom
What is destructor sign? Why it is used?
c++
0 Vote
6 Réponses
1st Nov 2016, 4:21 AM
ankeet mishra
how to create a destructor of a class?
classes
python
2 Votes
4 Réponses
29th Oct 2016, 12:28 AM
Shekhar Bahuguna
what is the difference between constructor and destructor
c++
comments
1 Vote
4 Réponses
23rd Sep 2016, 5:32 AM
SAHIB SHAIKH
how will this constructor and destructor works?
c++
0 Vote
2 Réponses
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 Réponses
29th Sep 2016, 7:15 AM
iwbtg_wang
Is there any disadvantages of constructor and destructor ?
c++
class
constructor
destructor
0 Vote
4 Réponses
4th Feb 2019, 4:34 PM
Sahil Bhakat
Fill in the blanks to declare a destructor for the class Book.
c#
4 Votes
5 Réponses
10th Feb 2018, 2:20 AM
Mesut Alcicek
can we use a function to call destructor
c++
0 Vote
3 Réponses
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 Réponses
15th Feb 2018, 1:37 PM
Prankur Singrol
Why do we make a destructor in a class?
c++
oops
sololearn
0 Vote
2 Réponses
2nd Jun 2020, 7:07 AM
Introvert
When does the destructor called in the program?
oop
0 Vote
2 Réponses
15th Mar 2018, 6:33 PM
Tayyab arifeen
RAII for thread
c++
destructor
detach
joinable
thread
0 Vote
2 Réponses
15th Apr 2021, 9:11 AM
Ketan Lalcheta
Why the output is: "Constructor Constructor Destructor Destructor"???
c#
destructors
0 Vote
2 Réponses
6th Aug 2017, 11:04 AM
Raffi Ohannesian
Please give syntax to creat a constructor and destructor inside a class
c++
constructors
destructors
5 Votes
6 Réponses
7th Jul 2017, 12:27 PM
KABILESH KANNAN
I didn't know that the destructor could be called explicitly...
c++
class
destructor
explicity
1 Vote
2 Réponses
16th Mar 2020, 3:57 PM
Сергей Куликов
What is the benifit of making virtual destructor in c++?
c++
destructors
1 Vote
3 Réponses
16th Jun 2019, 7:37 PM
Ujjawal Dubey
C++: Why constructor cannot be virtual but destructor can?
c++
virtualfunction
1 Vote
1 Réponse
1st Oct 2018, 4:26 PM
Sumit
Which file does Destructor need to be defined
c++
0 Vote
1 Réponse
20th Nov 2018, 11:02 PM
Jimmy Chen
What is the different between constructor and destructor ?
c++
java
0 Vote
3 Réponses
30th Oct 2017, 2:20 PM
Md Tarique Aziz
is there any way to visualise how a destructor works
c++
0 Vote
5 Réponses
30th Jul 2016, 11:44 AM
gowtham
What happens when we use virtual destructor in a class
c++
1 Vote
2 Réponses
25th Apr 2018, 9:51 AM
Suraj Manchala
Why is a destructor called when an object is created?
c#
inheritance
-2 Votes
6 Réponses
11th Aug 2016, 12:57 PM
Sjardi Djoy Willems
No destructor in Java? What is the best way to create destructors in java
bycall
callbye
delete
garbage
java
10 Votes
10 Réponses
3rd Sep 2018, 8:10 AM
Charan Leo25
What is diffrence between constructor and destructor in C++?
c++
inheritance
1 Vote
2 Réponses
26th Aug 2017, 3:09 PM
Ulaankhuu Bymbasuren
In C++, execution of constructor and destructor while inheritance ?
c++
constructor
destructors
inheritance
0 Vote
3 Réponses
15th Apr 2018, 1:32 PM
ARIF ANSARI
Why destructor is called 3 time can u please explain?
@sololearn
0 Vote
1 Réponse
9th Jun 2023, 7:54 PM
Harsh Agrawal
what is a destructor ? can it be overload ?
constructors
destructors
functions
3 Votes
2 Réponses
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 Réponses
14th Apr 2017, 2:19 AM
Gigi
is there a difference between overloading and overriding?and can destructor be overloaded?
cpp
5 Votes
5 Réponses
12th Mar 2017, 10:31 AM
Edwin Bello
Can you help me understand Constructor and Destructor of OOP??
c++
class
constructor
destructors
oop
0 Vote
2 Réponses
20th Oct 2018, 2:59 PM
Md Ibrahim (West Bengal, India)
Which operator is used for the destructor in Java?
java
0 Vote
2 Réponses
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 Réponses
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 Vote
1 Réponse
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 Réponses
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 Réponses
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 Réponses
21st Dec 2016, 12:31 PM
الواجد
Use of destructors cpp
cpp
destructor
2 Votes
5 Réponses
29th Mar 2020, 6:59 AM
bell
Is the working order of a constructor and a destructor in c++ different?
c++
1 Vote
3 Réponses
17th Mar 2019, 2:42 AM
Sagnik Ganguly
Poser une question
Poser une question
Poser une question
Poser une question
< Précédent
1
2
3
Suivant >
Aujourd'hui en vedette
Help please?
3 Votes
How to get better with problem-solving and programming
1 Votes
Ejercicio Pytho
0 Votes
Odd even threads without condition variable
0 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Bug on "Java for Beginners Module 3 Quiz"
1 Votes
Suggestions needed
4 Votes
SQL practice
2 Votes
Game development
0 Votes