Computer Science, asked by shapoo, 1 year ago

how many destructor a class can have ?

hey mates help me i will give u 20 points

Answers

Answered by kmages
1
A class can have only one destructor. It can be executed when the control reaches the end of the scope.


Hope this is useful mark me as brainliest lf ur satisfied
Answered by Anjeelina
1
A destructor doesn't have parameter so there can be only one however you can have more than 1 constructor which is not possible with destructor .
HOPE IT'S ENOUGH.

Anjeelina: hy
Anjeelina: ohk
Similar questions