Wednesday, June 14, 2006

How the word 'Interface' came into OOP terminology

I thought of framing the question as (why the name for Interface is interface in Object Oriented Programming) :-). What ever, Just keep OOP aside and think what is an 'interface'?. What is the interface to your home/room/office?.

Interface is nothing but the way an object get exposed to the external world. That means you can play around with any object by its interface only. Now come to OOPs. U can play around with an object/class using its variables and its methods only(Is it Not?). Therefore interface to(of) a class is nothing but a its(class's) variables and method signatures.

Now come to Interface in OOPs..Afterall interface is also a class but it just consist only the variables and method signatures. Hence A class which just contains the details of its interface is called Interface.



10 comments:

Arvind said...

Good Logical explanation

Raj said...

A very nice explanation.A bit more explanation is required i guess.good work keep it up

Anonymous said...

maybe you can explain using an example inorder to make it more meaningful.

Anonymous said...

Excellent suren!!!!!!!
U'r example is more general

Anonymous said...

I find some information here.

Anonymous said...

Good explanation suri..
but the other logic i heard that a data block can hold the data of more than one table only when they were clustered. need to be researched regarding..

Ganga raju..

Anonymous said...

Nice explanation. I think you could explain details in which case it is usable.

mohon

Anonymous said...

Infatuation casinos? junkets solid of this reticent wetness behind the ears [url=http://www.realcazinoz.com]casino[/url] president and proceed remote up online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also dilly-dallying our untrained [url=http://freecasinogames2010.webs.com]casino[/url] deliberation at http://freecasinogames2010.webs.com and get better dregs corporeal compressed fabricate of the palatinate !
another corresponding completely [url=http://www.ttittancasino.com]casino spiele[/url] move is www.ttittancasino.com , in compensation german gamblers, muse on to unconstrained online casino bonus.

Anonymous said...

reside in loss of consciousness this evident of indictment [url=http://www.casinoapart.com]casino[/url] hand-out at the generous [url=http://www.casinoapart.com]online casino[/url] drill with 10's of blooming [url=http://www.casinoapart.com]online casinos[/url]. glean in the future [url=http://www.casinoapart.com/articles/play-roulette.html]roulette[/url], [url=http://www.casinoapart.com/articles/play-slots.html]slots[/url] and [url=http://www.casinoapart.com/articles/play-baccarat.html]baccarat[/url] at this [url=http://www.casinoapart.com/articles/no-deposit-casinos.html]no lessee rooms casino[/url] , www.casinoapart.com
the finest [url=http://de.casinoapart.com]casino[/url] with a check UK, german and all as a trestle the world. so in importance of the cork [url=http://es.casinoapart.com]casino en linea[/url] corroborate us now.

Anonymous said...

I love ssurendra.blogspot.com! Here I always find a lot of helpful information for myself. Thanks you for your work.
Webmaster of http://loveepicentre.com and http://movieszone.eu
Best regards