Difference between abstract class and interface

Answer Posted / er. prabhat, tcs

biggest difference:

purpose of class is to represent objects
while
purpose of interface isn't to represent objects.....by
interface programmer gets only method names..but body is 2b
given by him....
now a question arises in my mind...if i'm giving body of
method then why shouln't i giv name too.....hmmmm.....

bete...interface ke methods ke body to programmer deta hai
bt chalata koi aur hai...it is not programmer who calls
these methods..


chinta mat karo...i'm giving example.....
EVENT HANDLING :ActionListener ko implement kiya,
actionPerformed() ki body di....magar actionPerformed() ko
humne nahi chalaya..note it

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know textbox and textview controls of .net mobile? : Microsoft dot net mobile

716


Explain about developer benefit from memory management?

714


can u give me real example of how web.config overrides the machine.config file?

1475


what is inheritancy where u required ?

1721


What is .net mobile automatic paging? : Microsoft dot net mobile

762


How do I write to the application configuration file at runtime?

699


What actually happes when you add a something to arraylistcollection ?

663


what is sessions and cookies take one example simple way to understand

2059


What is the difference between absolute expiration and sliding-time expiration?

740


What is difference between Desktop, Client Server & Web based applications?

741


how to change row background color in gridview

725


server.transfer limitation ?

1960


What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile

705


So what exactly is the configuration file for then?

713


Can you explain update progress control?

696