rws Posted April 27, 2003 Posted April 27, 2003 In the inherited class, is it possible to hide properties, events, and methods that belong to base class (without editing the base class routines)? Quote
*Gurus* divil Posted April 27, 2003 *Gurus* Posted April 27, 2003 No. The closest you'll get is the Shadows modifier. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
rws Posted April 28, 2003 Author Posted April 28, 2003 Too bad. I think it would be a nice feature . Thanks, divil. Excellent forum. Quote
*Gurus* divil Posted April 28, 2003 *Gurus* Posted April 28, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.