ForNext
Only Do What Only You Can Do
121. destructor
Hyperpolyglot C++ Style Languages: C++, Objective C, Java, C# より (2012.05.08)
VBScript
JScript
Perl
PHP
Python
Ruby
PowerShell
Scala
F#
C
C++
Rational::~Rational() {};
C++Builder
VC++
C#
~Rational() { perform cleanup }
Java
protected void finalize() throws Throwable { super.finalize(); }
Objective-C
-(void) dealloc { [super dealloc]; printf("deallocated…"); }