Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the real use of interface in c#,other than that
multiple inheritance is not possible

Answers were Sorted based on User's Feedback



what is the real use of interface in c#,other than that multiple inheritance is not possible..

Answer / pugal

When creating a standalone project which can be
changed at will, use an interface in preference to an
abstract class; because, it offers more design flexibility.

Use an interface to design a polymorphic hierarchy
for value types.

Use an interface when an immutable contract is
really intended.

A well-designed interface defines a very specific
range of functionality. Split up interfaces that contain
unrelated functionality.

Is This Answer Correct ?    48 Yes 14 No

what is the real use of interface in c#,other than that multiple inheritance is not possible..

Answer / kalaimani

The interface contains only declaration of methods, no implementation. Because the interface is can be inherited by class and struct.

Is This Answer Correct ?    21 Yes 9 No

what is the real use of interface in c#,other than that multiple inheritance is not possible..

Answer / venkatesan

Interface is a contract which declares a method inside and
gives the implementation in different classes using
polymorphism. we cannot create a object to an interface but
we can create a reference for an interface.

Is This Answer Correct ?    4 Yes 0 No

what is the real use of interface in c#,other than that multiple inheritance is not possible..

Answer / siddu.

Interfaces are used to define common functionality among the
child classes or struts.

Interfaces can be used to implement some rules on the
derived classes or struts.

Interface are used to hold object of a class which derives
it in client machine in case of remoting.

Is This Answer Correct ?    7 Yes 5 No

what is the real use of interface in c#,other than that multiple inheritance is not possible..

Answer / ankita

In the phase of interfaces we can only declare methods. and
this method can contain its definition in the different
classes where we can define it.........

Is This Answer Correct ?    1 Yes 6 No

what is the real use of interface in c#,other than that multiple inheritance is not possible..

Answer / ravindarjobs

have a look at this link

http://msdn2.microsoft.com/en-us/library/3b5b8ezk.aspx

Is This Answer Correct ?    10 Yes 17 No

what is the real use of interface in c#,other than that multiple inheritance is not possible..

Answer / satyaprakash reddy

c#.net will not support multiple inheritence to overcome
these problems we use interfaces,
actually c# is faces some problems while go through the
garbage collection and interfaces are better according to
performance

Is This Answer Correct ?    21 Yes 33 No

Post New Answer

More C Sharp Interview Questions

Explain lock, monitors, and mutex object in threading.

0 Answers  


Difference between string and stringbuilder?

3 Answers   HCL, Siemens, TCS,


What is a jagged array?

0 Answers  


List down the different ide’s provided by microsoft for c# development.

0 Answers  


1)what is timestamp in C# (anilringole@gmail.com)

2 Answers   Wipro,


How can we give strong name to assembly? What is satellite assembly?

2 Answers   SMNetserv,


What is appdomain in c#?

0 Answers  


What is extension method in c# and how to use them?

0 Answers  


How are methods overloaded?

0 Answers  


What is short circuit logical evaluation?

1 Answers   TCS,


What is toint32 c#?

0 Answers  


How can we Achieve Late binding in C#.Can any give one example.

5 Answers   Value Labs,


Categories