Skip to main content
Inspiring
August 18, 2008
Question

cfinterface

  • August 18, 2008
  • 2 replies
  • 350 views
Hi all,

what is the use of cfinterface and its advantages in using it? it seems that it's only rewriting the arguments of the cf component that implements it. thanks.
    This topic has been closed for replies.

    2 replies

    Inspiring
    August 18, 2008
    An interface is a contract that defines what a class will contain. It contains no implementation code but a class that implements this interface can be guaranteed to have the methods defined in the interface. This differs from an abstrac class that can have implementation code in it

    Deciding when a where to use inheritance, abstract classes and interfaces comes from experience. However, interfaces in many Object Oriented Programming languages including Java, C# and ActionScript. If you want to learn about Domain Modelling read any good book or online reference about one of these and you will hopefully get the point. Asking on forum to learn this is the wrong approach as it is too big a topic to answer effectively in this format!
    Inspiring
    August 18, 2008
    > what is the use of cfinterface and its advantages in using it? thanks.

    Read the docs. Come back with more specific questions once you've done
    that.

    --
    Adam