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

What is managed or unmanaged code?

870


Define an abstract class?

703


What is view state c#?

709


Explain the security with aop?

856


What is parameter c#?

747


How do I register my code for use by classic com clients?

698


What are the benefits of using generics in c#?

696


What are modifiers in c#?

670


What is unrecognized escape sequence in c#?

722


What operator means?

678


Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?

774


What is xml serialization in c#?

678


Can we create instance of private class in c#?

706


What is the difference between properties and indexer in c#?

646


Define using statement in c#?

726