what is the purpose of Interfaces?

Answer Posted / mohit jethva

1. Interface is use for follow the some coding standard
2. If we create interface then each and every devloper has
to implement all the methods.
3. For e.g. If we are creating application for Vichele then
we need to create one interface for two wheeler and one
interface for four wheeler. When any of devloper is going
to extend it then he/she has to implement every method like
Break , Gear , Liver etc....
4. Force to implement all the methods from interface.
5. Multiple inheritance.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of constructor?

464


Are c# tuples immutable?

518


What is the difference between the debug class and trace class? Documentation looks the same.

513


What is the benefit of using interface in c#?

508


What is assembly version series sequence?

549






What is the meaning of int parse in c#?

514


What is type safe in c#?

495


What is the difference between writeline and write in c#?

437


What is an extension method in c#?

511


How can I get around scope problems in a try/catch?

489


What are the three types of predicates?

467


What is clr namespace?

500


Is c# strongly typed?

482


Describe the parts of assembly.

531


Can I use exceptions in c#?

552