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 is inheritance in csharp?

516


What is parameters in c#?

493


Is it possible to execute multiple catch block for a single try statement?

579


How to override a function in c#?

537


We cannot create instances of static classes. Can we have constructors for static classes?

511






What are scriptable objects?

502


Describe two uses of the “using” statement during the operation of c#?

544


What is data dictionary in c#?

484


Can interface inherit class in c#?

484


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

453


What are satellite assemblies?

550


How do I create multifile assembly?

500


Explain how to implement delegates in c#.net

494


Hello! How to do this: "Create manifest utility intended for creating update content files. Application should take a set of files as input parameter and generate XML based manifest file as output one." I use C# and vs.net 2003. It's urgent! Help please, thanks. Mayana

1489


What is IL / CIL / MSIL?

653