What?s an interface class?

Answer Posted / lakshmi

1)An Interface is a reference type and contains only
abstract members.
2)Interface contains declaration of methods, properties,
Indexers and events.
3)You can never instantiate an interface, it only contains
signature of its members.
4)An Interface has neither constructors nor fields.
5)An Interface definition also not permitted to contain
operator overloads.It is also not permitted to declare
modifiers on the members in an Interface definition.
6)An Interface members are always implicitly public and
cannot be declared as virtual or static.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?

745


Why do we use classes?

691


How is a strongly-named assembly different from one that isn’t strongly-named?

850


Explain what are three test cases you should go through in unit testing?

757


Why do we use reflection in c#?

717


What is dll file in c#?

752


Is there a way of specifying which block or loop to break out of when working with nested loops?

778


Explain partial class in c#?

722


You have got 1 million parking slots. At a time a parking slot can be free or not. To get next slot easily which data structure to implement?

866


If casting fails what type of exception is thrown?

680


How many constructor can a class have?

751


Is c# pass by reference?

714


What are the 3 types of comments in c#?

748


Why do you need boxing in c#?

694


What is the purpose of private constructor in c#?

789