Back to list
Views:   10.2K
Replies:  1
Archived

C# Interfaces. Why are they separate? And why would anyone use this?

Hi All,

I have a question about C# interfaces.  Basically I understand that when using interfaces it means you're building loosely coupled applications. The interface is merely a declaration.  All members are public by definition.

Here is my problem / confusion.

Why do we have separate interfaces and separate classes?  Why can't I define the interface within the class?
This is where I am confused. I think I am not understand the interface concept properly....

Kindly help me to some clarity on this.

Thanks
Vijay r
Vijay Raghavendran, Jul 04, 2011
Reply 1
Vijay Raghavendran, Jul 04, 2011


Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.2.2