The destructor automatically executes when the class object goes out of ____.
1 answer:
Answer:
scope
Explanation:
Destructor is a member function and it call automatically when the class object goes out of scope.
Out of scope means, the program exit, function end etc.
Destructor name must be same as class name and it has no return type.
syntax:
~class_name() { };
For example:
class xyz{
xyz(){
print(constructor);
}
~xyz(){
print(destructor);
}
}
int main(){
xyz num;
}//end program
when the object is create the constructor will called and when the program end destructor will call automatically.
You might be interested in
The answer is copyright like for example if you copy and paste a essay offline and don’t give credit to the author it called copyright
It would be A. I hope that this helps!
Answer:
it’s just a screenie hope it helps
I would say A because it was talking about something in the present but what they were talking about was in past. so I would think A
Answer:
B And A
Explanation:
B: The controller renders a responce it can be seen as a manager and other parts are its workers and makes sure that other parts are "working" well