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

Why dictionary is used in c#?

542


What are the delegates in c#?

476


What is transparent caching with aop ?

622


What are the types of inheritance in c#?

493


Why ienumerable is used in c#?

468






What are floating point numbers?

486


What is a hashset c#?

470


What is default value of decimal c#?

473


What is the keyword used to prevent a class from being inherited by another class?

663


What does question mark mean in c#?

565


What exception can an overridden method throw in comparison with the method it is overriding?

459


What is threading in c# with example?

452


Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?

539


List some of the common data providers for ado.net framework?

452


What is the use of console readkey ()?

474