Object-Oriented Programming - Part 3
Written by: Doug Jenkinson
Article
This past week I've been doing a lot of research into how VB.net implements OOP, it's given me a bit of insight into how powerful .net can be.
Everything in .net is an object. You can even inherit from almost all of those objects as well. The biggest use so far, that I have seen, is a custom event handler class that inherits from EventArgs. I've written a couple of classes that inherit from EventArgs in order to handle events on custom data types. It was pretty easy as well.
As a last thought, for any "legacy" VB6 programmers out there, you can add "Implements _yourbaseclass_" to another class. As far as I can tell, this only works with objects that are not intrinsic to the language.
Revisions
- v1.0 (17 Mar 2006) - Article published.

