First page Back Continue Last page Overview Graphics
Destructor Basic Differences
C++
- example2.cpp
- Destructors in Parent & Child class are called
- By default, destructor is non-virtual
- Can be declared as virtual (example3.cpp)
Perl
- example2.pl
- Only one of the Destructors is called
- Can be made to call custom function, similar to _init in constructor