Re: "Hiding" an inherited property?
From: Paul E Collins (find_my_real_address_at_CL4.org)
Date: 04/13/04
- Next message: Gary Hunt: "Re: Problem with pages talking between two servers"
- Previous message: Brent: "Re: Problem with pages talking between two servers"
- In reply to: Jacob: ""Hiding" an inherited property?"
- Next in thread: Jon Skeet [C# MVP]: "Re: "Hiding" an inherited property?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Apr 2004 17:59:50 +0000 (UTC)
"Jacob" <jacobslusser@REMOVETHIShotmail.com> wrote:
> Is there a way to make a property of an inherited
> class invisible to the programmer? I know that
> using the keyword "new" allows you to create
> another property in the place of the existing one, but
> how can I make the property hidden and not available
> at all?
I don't think you can, and it would be a very bad thing to do from an
object-oriented standpoint.
For it to be possible to treat any inherited class instance as though it
were a base class instance, the inherited class must have all of the members
of the base class.
P.
- Next message: Gary Hunt: "Re: Problem with pages talking between two servers"
- Previous message: Brent: "Re: Problem with pages talking between two servers"
- In reply to: Jacob: ""Hiding" an inherited property?"
- Next in thread: Jon Skeet [C# MVP]: "Re: "Hiding" an inherited property?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|