Cursos
Fazer login
Começar a aprender IA
Cursos
Fazer login
Começar a aprender IA
Q&A Discussões
Pesquisar
Pesquisar
Faça uma pergunta
Faça uma pergunta
Use of destructors cpp
cpp
destructor
2 Votos
5 Respostas
29th Mar 2020, 6:59 AM
bell
Is the working order of a constructor and a destructor in c++ different?
c++
1 Voto
3 Respostas
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 Voto
1 Resposta
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 Respostas
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 Votos
5 Respostas
16th Apr 2016, 12:36 AM
Greg Mavhunga
Inheritance
c++
constructors
destructor
inheritance
2 Votos
2 Respostas
14th Dec 2018, 4:13 PM
Nikola
is it necessary to call a destructor when we use delete function?
c++
destructors
0 Voto
2 Respostas
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 Resposta
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 Resposta
26th Aug 2017, 2:06 PM
dinesh yoga
Why does this code print A twice?
c++
destructor
2 Votos
1 Resposta
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 Votos
3 Respostas
13th Oct 2019, 6:01 AM
💘 Ŝαđᵃ𝐦 ʰ𝐔ⓢ𝔰ÃιŇ 🎧
Can you tell me why java don't have a destructor class like C# ?
java
0 Voto
3 Respostas
9th Sep 2016, 10:18 PM
Sandile Mtshali
Why this codE has 21 output??Is unset means object destroyed???
constructor
destructor
0 Voto
2 Respostas
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 Voto
3 Respostas
27th Jul 2016, 10:13 AM
Dakilang Hokage
What are the uses of destructor's in c++?
c++
destructor
1 Voto
2 Respostas
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 Respostas
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 Voto
3 Respostas
22nd May 2022, 8:06 PM
Muhammad Talha Atif
How to destroy object in c++
c++
destructor
0 Voto
1 Resposta
3rd Mar 2018, 7:38 AM
Тимур Алиев
I have a question about vector (read description)
c++
class
destructor
vector
4 Votos
12 Respostas
9th Apr 2018, 1:07 AM
ajbura
What is the purpose of a pure virtual destructor?
c++
destructor
pure
virtual
7 Votos
2 Respostas
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 Voto
6 Respostas
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 Voto
1 Resposta
23rd Jul 2016, 7:21 PM
Kaivalya Dalvi
Did I understand correctly this C++ challenge code?
c++
destructor
vector
1 Voto
1 Resposta
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 Votos
2 Respostas
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 Voto
2 Respostas
15th Feb 2017, 9:58 PM
SIMOMEGA
C++ Class Constructors and Destructors Access Specifiers
access-specifier
c++
class
constructor
destructor
1 Voto
3 Respostas
6th Sep 2020, 5:13 AM
Edward Finkelstein
Unexpected Inheritance Output
c++
constructor
destructor
inheritance
output
0 Voto
4 Respostas
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 Respostas
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 Voto
2 Respostas
6th Aug 2016, 3:10 PM
shola ola ibrahim
memory for class object having pointer as data member
c++
constructor
destructor
memory
pointer
0 Voto
1 Resposta
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 Votos
3 Respostas
15th Dec 2018, 7:22 PM
Nikola
__del__ method in python
class
collector
del
destruction
destructor
garbage
magic
object
oop
python
5 Votos
5 Respostas
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 Votos
2 Respostas
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 Voto
4 Respostas
2nd Aug 2016, 12:04 AM
The Klespyrian
Ho to delete pointers and free memory properly?
c
c++
delete
destructor
free
memory
pointers
2 Votos
3 Respostas
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 Respostas
11th Aug 2022, 12:58 PM
Muhammad Talha Atif
Output of C++ code
c++
class
constructor
destructor
increment
int
static
vector
0 Voto
2 Respostas
25th May 2021, 4:49 AM
Edward Finkelstein
Faça uma pergunta
Faça uma pergunta
Faça uma pergunta
Faça uma pergunta
< Anterior
1
2
3
Próximo >
Quente hoje
How many time I can use sololearn trial mode?
2 Votes
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Did sololearn helped you to get easier a job?
1 Votes
Sololearn course
1 Votes
solo learn program issue - iPhone?
1 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
Bug sur le deuxième cours de python
1 Votes
I am learning javascript intrmdt but when I play a code challenge. The app is givin me comlecated questions with less time.why?
0 Votes