Constructors and Destructors

Constructors are the rough equivilent of the Initialize event in VB6 classes, but with the added ability to be overloaded. The is no true equivilent to the Terminate event in VB6 classes, which is deterministic … in other words, in VB6 you know exactly when the object was being unloaded from memory. However, due to garbage collection in VB.NET, finalization in in-deterministic … you don’t REALLY know when an object is being unloaded from memory, therefore you must adopt new practices for object “clean-up”. This video discusses constructors and the finalize method in classes, as well as a common convention to be used before setting a object reference to nothing.

« Previous LessonVB 201 – Object Oriented Programming and Design PatternsNext Lesson »

This ship has sailed …

This webpage describes one video of hundreds hosted on this website. HOWEVER …

This video has been removed from our collection.

Read why I decided to keep old pages like this around. Or better yet, visit the home page … its the best place to get started.

About this video:

Duration: 11 Minutes, 58 Seconds
Recorded Using: All Versions


10 Year Anniversary Sale - 30% Off - ENDING SOON!!!    Learn more ...