Destructors can be overloaded | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 1

Destructors can be overloaded


13th Dec 2019, 6:28 AM
devendra soni
devendra soni - avatar
5 Respostas
+ 8
~ swim ~ Dinchya know that destructors can receive parameters that will do things like: ~Foo() ~Foo(bool justKidding) ~Foo(int destructivePower) ~Foo(string eulogy) ~Foo(int destructivePower, string eulogy) ūüėú
13th Dec 2019, 8:12 AM
David Carroll
David Carroll - avatar
+ 5
Have no idea what that wink is supposed to mean David Carroll . My nose is clear of boogers. Apologies to the OP for the off topic conversation.
15th Dec 2019, 3:25 AM
Sonic - avatar
+ 4
David Carroll you missed ~Foo(double doubleDestructivePower) and ~Foo(char charThisObject)
15th Dec 2019, 2:49 AM
Sonic - avatar
+ 2
Sonic Indeed... Thank goodness for community contributions. ūüėČ
15th Dec 2019, 3:16 AM
David Carroll
David Carroll - avatar
14th Dec 2019, 5:32 PM
Amit Kumar
Amit Kumar - avatar