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

Explain “static” keyword in c#?

653


Explain the process of inheriting a class into another class?

750


What is string pool in c#?

762


What does async mean in c#?

737


What are data types examples?

714


Is there regular expression (regex) support available to c# developers?

753


What is the use of iqueryable in c#?

681


What is a partial class in c#?

690


How does split work in c#?

675


What does static mean in c sharp?

812


what is an event? Define delegate?

754


Distinguish between continue and break statement?

764


What is indexer c#?

662


What is a function c#?

743


Why use a singleton instead of static methods?

661