Advantages / Disadvantages of Inheritance in VB.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

Can someone provide me with a list of advantages / disadvantages of Inheritance in Visual Basic.NET?

Thanks & Regards
Dhwanil
 
Advantages: VB looks like a real programming language now.

Disadvantages: None that I can think of.

--
Bob Powell [MVP]
Visual C#, System.Drawing

All you ever wanted to know about ListView custom drawing is in Well Formed.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*

The GDI+ FAQ: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://royo.is-a-geek.com/siteFeeder/GetFeed.aspx?FeedId=41

*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*





Dhwanil Shah said:
Hi,

Can someone provide me with a list of advantages / disadvantages of
Inheritance in Visual Basic.NET??
 
As long as you learn proper OO techniques, I see tons of advantages (reuse
mostly) and no disadvantages. If you are clueless in OO, I see tons of
disadvantages (improper inheritance mostly) and few advantages.

The question then is how well you understand OO. If you have a good grasp,
inherit away.

I find that most people getting into .NET inherit too much and do far too
little planning. As there is no easy refactor support at the moment, the
code lives on long after the mistake is noticed. If you do not have time to
properly plan your app, inheritance is more likely to be a problem than a
help.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
Dhwanil Shah said:
Hi,

Can someone provide me with a list of advantages / disadvantages of
Inheritance in Visual Basic.NET??
 
Back
Top