Re: Class Inheritance
From: Cindy Winegarden (cindy.winegarden_at_mvps.org)
Date: 07/08/04
- Next message: Justin Emlay: "Find Missing Data"
- Previous message: help in c#: "c# app problems"
- In reply to: ubergoober: "Class Inheritance"
- Next in thread: Jon Skeet [C# MVP]: "Re: Class Inheritance"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 7 Jul 2004 23:25:02 -0400
Hi UberGoober,
Here's an interesting discussion of exactly this issue:
http://tinyurl.com/26vdb. One suggestion was to have a parent class that
Class A and Class B both inherit from and have the property in question be
part of Class A but not of Class B.
-- Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP cindy.winegarden@mvps.org www.cindywinegarden.com "ubergoober" <ubergoober@discussions.microsoft.com> wrote in message news:F9DE683E-013A-40B2-A4B5-9A0D448A6209@microsoft.com... > Hi, > > I have Class A, and I would like my Class B to inherit from Class A because they are conceptually common classes. My problem is that Class A has a property that I don't want Class B to have. Is there any way to hide, or not inherit, properties of the parent class? Btw, I'm coding in C#, in case that makes a difference........
- Next message: Justin Emlay: "Find Missing Data"
- Previous message: help in c#: "c# app problems"
- In reply to: ubergoober: "Class Inheritance"
- Next in thread: Jon Skeet [C# MVP]: "Re: Class Inheritance"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|