destructor tag

4 questions


1 answers
66 views
0
When is a virtual extinction used?

I understand that I have virtual attached to the constructor or other function,I don't know why virtual is used for extinction.When an object disappears, it automatically calls for an inherited class,...


1 answers
108 views
0
Do I have to call a parent class extinction?

C++ class is overriding the virtual extinctionShould I call a parent class extinction within the extinction?MyChildClass::~MyChildClass(){ //Call Parent Class Destructor this->MyBaseClass::~MyBaseC...

2 years ago

1 answers
99 views
0
Please tell me the order in which the results of the generator extinction program example came out

# include <iostream> using namespace std ; class Point { int x, y ; public: Point(int x=0, int y=0) { this->x = x ; this->y = y ; cout << \tPoint ; print() ; cout << con...

2 years ago

1 answers
108 views
0
Problem occurs in the destructor. Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

I keep getting errors from the extinction person, but I'm using xcode, so I don't know which part is the problem ㅜ

2 years ago

© 2024 OneMinuteCode. All rights reserved.