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...


Y go for Interface? What is use of interface?

Answers were Sorted based on User's Feedback



Y go for Interface? What is use of interface?..

Answer / purushotham .tella

An Interface is a collection of semantically related
abstract members.Used To Support Multiple Inheritance

Is This Answer Correct ?    6 Yes 0 No

Y go for Interface? What is use of interface?..

Answer / venkat2050

interfaces is in concept of late binding which happen at
runtime which a part in OOPs concept
the interface has indexes of abstact
it should in public

Is This Answer Correct ?    4 Yes 2 No

Y go for Interface? What is use of interface?..

Answer / kiran

We will go for an interface when we want to implement a
specific behaviour.

ex:
1.My class x implements IDisposable interface to handle
cleaup operation. I have to implement that behaviour by
implementing the method interface method Dispose()
explicitly in my code.

class x:IDisposable
{}
2.My class y implements IComparable interface to implement
sorting between a list of objects created of type y. Here I
have to implement CompareTo method.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C Sharp Interview Questions

What?s the advantage of using System.Text.StringBuilder over System.String?

3 Answers  


what are the files we need to deploay a project in the system?

2 Answers  


What debugging tools come with the .NET ssSDK?

0 Answers   Siebel,


Can you prevent your class from being inherited and becoming a base class for some other classes?

3 Answers  


What is the namespcae generally given to the webpage of the .NET Framework ?

0 Answers   Siebel,


What is parallel foreach in c#?

0 Answers  


What?s a delegate?

2 Answers  


Explain the Different types of configuration files in .net?

0 Answers  


What is Interface? Explain with an example.

8 Answers   TCS,


What do you mean by saying a "class is a reference type"?

0 Answers  


What are reflections in c#?

0 Answers  


Which constructor is called first in c#?

0 Answers  


Categories