Re: base, derived objects

Chris Anderson <[email protected]> Thu, 3 May 2007 22:53:16 +0100
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
> I don't follow you here...
> 
> >> You could code the ctor to take a object of type Base, but how
would
> you extract the private members >> from it without exposing them to
> other classes.
> 
> How does this affect other classes.  Perhaps if the base class is
> 'Internal' - but if the base class is 'Public', then I don't see how
it
> would affect other classes.

I didn't say it affects other classes; I mean it forces the visibility
of the base members to at least be internal.
But if you didn't want that, you have to compromise your design.

And if the framework/tool supported this facility as a built-in feature,
it would either only be applicable in a very small subset of cases, or
would remove the ability to have private members - think outside your
immediate needs and think about the general case (which is what the
framework/tools guys have to)

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com