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
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?
Why do we use classes?
How is a strongly-named assembly different from one that isn’t strongly-named?
Explain what are three test cases you should go through in unit testing?
Why do we use reflection in c#?
What is dll file in c#?
Is there a way of specifying which block or loop to break out of when working with nested loops?
Explain partial class in c#?
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?
If casting fails what type of exception is thrown?
How many constructor can a class have?
Is c# pass by reference?
What are the 3 types of comments in c#?
Why do you need boxing in c#?
What is the purpose of private constructor in c#?