Article 5B8RN LXer: What is Interface in C# and how to use it?

LXer: What is Interface in C# and how to use it?

by
LXer
from LinuxQuestions.org on (#5B8RN)
Published at LXer:

An Interface in C# is a contract between Interface and class that implements it. This contract says any class that implements this interface will provide the implementation for the members of the Interface. Unlike, Abstract class, Interface in C# can only contain declaration not implementation. Because all the members of the Interface are abstract and cannot have an implementation. The keyword abstract will not be used with the members of the Interfaces but the compiler will treat them as abstract members.Just like Abstract and other special classes, Interfaces also come with some rules. Lets discuss those rules now.

Read More...latest?d=yIl2AUoC8zA latest?i=Lpx1FRuYmNc:S6qkswFQS3U:F7zBnMy latest?i=Lpx1FRuYmNc:S6qkswFQS3U:V_sGLiP latest?d=qj6IDK7rITs latest?i=Lpx1FRuYmNc:S6qkswFQS3U:gIN9vFwLpx1FRuYmNc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments