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

what is the method while we are using adapter and dataset ?

1377


Session State and can i store desirialized object in state server, if yes how and if not why.

1352


Which software is used for .net programming?

530


Explain some of the disadvantages due to microsoft.net?

543


How cache is used? : Dot net architecture

500






What is Object Caching in Visual Studio 2010?

604


Tell me .net mobile emulators? : Microsoft dot net mobile

559


What is Video Streaming in .net??

556


which is the institute in hyderabad for providing the live project industry training

2340


Explain dotnet framework ?

528


What is parallel computing?

545


data types used in validation control

1754


What are the five stages in a dlx pipeline? : Dot net architecture

522


IS IT Possible to inherit the AJAX page from child class which(child) is inherit from page class.Because i should apply some security in child class

1548


what is polymorphism and advantage ?

1525