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

Describe what an Interface is and how it?s different from a
Class.

Answer Posted / seamus barrett

An interface represents a contract between a class and its clients (the classes and functionality that consume the class). A class that implements an interface makes available to it's clients a collection of methods and properties as defined by the interface. As a class evolves (as the code changes) the contract between class and its client remains intact so long as the interface is unchanged. This allows a class to grow without requiring its clients to be rebuilt.

Difference? A class can be instantiated into an object that provides functionality to the instantiating function while an interface cannot be instantiated.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is polymorphism important in oop?

1144


What is object-oriented programming? Webopedia definition

1343


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

4216


What is constructor in oop?

1176


What are the benefits of polymorphism?

1364


Whats oop mean?

1101


what is the sylabus for priliminaries?

2227


• What are the desirable attributes for memory managment?

2283


What are the advantages of polymorphism?

1084


What language is oop?

1075


What are the benefits of interface?

1119


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

2253


Which method cannot be overridden?

1174


What is basic concept of oop?

1225


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2596