protected interface members



I know this is not supported, but i'm just looking for some reasoning and
perhaps debate.
Is there are reason why this is not supported as in the words of manhy a
French poet "it's doing my head in".

I simply wish to break some concrete (and circular) dependencies into
interface dependences and decouple some of my classes. It is an internal
coupling (almost) as i don't want some of these methods exposed to the
outside world, only to derived classes.

However, it may span assemblies so internal interfaces don't work for me.
Public interfaces of course do the job, but i don't want to expose internals
to consumers of my services.

Basically, i want to create an interface for members that can be inherited
in derived classes. But i can't.

steven :: http://stevenR2.com


.



Relevant Pages

  • Re: Does Python really follow its philosophy of "Readability counts"?
    ... interface is what's documented as being the interface. ... We're told Python doesn't have private attributes. ... internals were inaccessible from Python code. ... always believe that their reason is a good reason. ...
    (comp.lang.python)
  • Re: Read-only, as opposed to const member
    ... They never even know the underlying accessor code was changed ... >> should care about. ... If it takes a month to propogate interface changes ... is about, keeping those internals private. ...
    (comp.lang.cpp)
  • Re: Abstract class or interface?
    ... I try to make the decision based on the relationship of the derived class to the base class. ... If the derived class "can act like" the type of the base class, I'd lean towards an interface. ... I understand the abstract class can have implementation in its methods and derived classes can only inherit one abstract class. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: OOP in Ruby?
    ... e.g. when implementing a particular algorithm I probably will first think about the internals and then decide which input or interface a class needs. ... In both cases though clarifying responsibilities of a class is the first and most important step IMHO. ...
    (comp.lang.ruby)
  • Product Internals
    ... In the thread "Wireless in Linux needs HELP", ... > information about the internals of their products. ... companies wish to hide the details of how to interface with their product. ... reasons why. ...
    (comp.os.linux.setup)