what is the real use of interface in c#,other than that
multiple inheritance is not possible

Answer Posted / kalaimani

The interface contains only declaration of methods, no implementation. Because the interface is can be inherited by class and struct.

Is This Answer Correct ?    21 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c# support properties of array types?

705


How many types of serialization are there in c#?

638


Explain the difference between a namespace and assembly name in .net?

703


Define a class and an object?

721


What is datasource c#?

650


What is escape character in c#?

675


Why do we use stringbuilder in c#?

700


What is this keyword in C#?

749


Can destructors have access modifiers?

732


What is difference between private and protected in c#?

660


How many types of delegates are there in c#?

654


Is double a decimal?

695


What is generic in c#?

625


What do u mean by thread safe?

695


write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5

2056