Polymorphisme and Interface clarification

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • serge calderara

    Polymorphisme and Interface clarification

    Dear all,

    For lonmg time now I try to understand clearly the sue of
    intervface in .NET by many example and articles,and
    comments from different source. But seems that each of us
    has they own ideas of interface outside from the fact of
    the basic rules of polymorphisme.

    For me Interface means a kind of FierWall between a class
    user and the class provider. such like properties and
    methods. When property and methosde are implemented in a
    class it is really clear that from outside we just see
    those interface and we do not care about how it works as
    long as we provide correct parameters.

    Now the confusion comes when we introduce the notion of
    Interface implementation. If each class when implementing
    an interface need to define its own way of handling the
    methode or property , they is not anymore this kind of
    Firewall compare to simmple class interface.

    What the system really do when is managing methode trhough
    interface compare to class property or methode.

    Does anyone can clarify my ideas of interface use and when
    to use, is there any rules...

    I know thats hard to explain but lets try


    Thanks for your help
    Regards
    serge





Working...