Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
In the inherited class, is it possible to hide properties, events, and methods that belong to base class (without editing the base class routines)?
  • *Gurus*
Posted
I've seen other people ask for this too, I don't know why though. Inheritance is designed so you can extend or replace functionality on a base class, not remove it. If that were the case, you could no longer assume that a derived class has a method that a base class had and things would get very nasty.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...