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 class in oops with example in c#?

683


What do you mean by streamreader/streamwriter class in c#?

716


What operators can be used to cast from one reference type to another without the risk of throwing an exception?

699


How do I create a delegate/multicastdelegate?

750


What is join in c#?

686


What is a delegate in c#?

688


What is data annotation in c#?

696


If you define a user defined data type by using the struct keyword, is it a value type or reference type?

703


What is serializable in c#?

692


What are instance fields in c#?

756


How many types of inheritance are there in c#?

679


What does console readline do in c#?

675


How to transpose multi-dimensional array?

783


Define interface class in c#?

687


Where’s global assembly cache located on the system?

760