what is the purpose of interface in c#.net

Answer Posted / mayur teli

Basic purpose is to use the defined structure/pattern of common implementation on the child location.
In other word we can say that when multiple people are working on same project if they need to use some common functionality (like initializing variables for their module) instead of writing their own method name(like init(), initialize(), setup()) if we write single method name (lets say init) then this method name can be implemented by any developer who derived....
and use to achieve multiple inheritance.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between abstract classes and interfaces

610


What is type checking in c#?

595


What is ildasm and obfuscator in net?

629


What is delegate in c# interview questions?

566


What are variables in c#?

600






Where do we use serialization in c#?

573


How can you prevent escaping on backslashes in C# with string definitions?

792


What are the methods in c#?

617


What is difference between Trace and Debug

654


What are "class access modifiers" in C#?

616


What is mvc firstordefault?

559


Does c# replace c++?

709


Is c# front end or back end?

581


What is func delegate in c#?

611


What is regex replace in c#?

615