Re: changing access modifier of base method
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Tue, 22 Jan 2008 22:19:24 -0000
jonpb <nospam@xxxxxxxxxx> wrote:
I have implemented an InputBox dialogue, I would like to change the
access modifier of the Form::Show method from public to private, but the
following code does not do that. What else do I need to do? Thanks.
There's nothing you can do. The way that inheritance works, a caller
should be able to treat an instance of your class as an instance of
Form - including calling the Show method. If you don't want to expose a
Show method, you shouldn't derive from Form.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
.
- References:
- changing access modifier of base method
- From: jonpb
- changing access modifier of base method
- Prev by Date: Maximized app window on top of auto-hide task bar
- Next by Date: Re: C# Generics
- Previous by thread: changing access modifier of base method
- Next by thread: Re: changing access modifier of base method
- Index(es):
Relevant Pages
|