Home  /  Questions  /  Question

58   94.9
Jul 04, 2014

C# Programming Interface questions

1) What is true about interfaces in C#
A) an interface cannot extends another interfaceB) an interface can extends a classC) a class can implements interface.D) interface data member are private.

58   94.9
Jul 04, 2014
C) a class can implements interface.

1,364   100.0
Jul 15, 2014
I have today published a video on interface vs. abstract class with a simple Rule Engine implementation.  In case you are interested in finding out more do checkout the below video.  To answer your questions, a class can implement multiple interface.  All members in the interface should be public.  In fact you cannot give access modifier to an interface element.


50   50
Mar 19, 2015
An Interface is a reference type and it contains only abstract members such as Events, Methods, Properties etc. It contain only declaration for its members and implementation defined as separate entities from classes. It can't contain constants, data fields, constructors, destructors and static members and all the member declarations inside interface are implicitly public. More about....Interface