MyClass - Implementing Polymorphism in VB.Net (Page 1 of 2 )
This article explains and extends the know-how of implementing polymorphism in VB.Net. Of course, polymorphism is a huge topic and I will only focus on the little known VB.Net keyword MyClass.
There was a recent tip published titled, "Polymorphism Can Lead to Head Scratching in VB.Net". It can be found here.
I would like to stress that VB.Net is a full compliant object-oriented language and thus, OOP should be practiced at all times within .NET Development, albeit with careful planning and design so as not to lose focus.
In the aforementioned article, the author stresses that polymorphism can lead to nightmares and headaches. I would like to stress that not implementing polymorphism can lead to much worse nightmares and headaches in terms of code maintenance and extensibility.
The above problem, as stated by the author, can essentially be solved with the VB.Net keyword: MyClass.