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

506


What is the use of web.config?

606


How do you handle this COM components developed in other programming languages in .NET?

578


What is a clickonce application?

511


what is the difference between running an application with and without debugger?

1536






What is the difference between machine config vs. Web config : Dot net architecture

491


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

1538


Explain a .net mobile example with details? : Microsoft dot net mobile

475


Explain the difference between l1 and l2 cache? : Dot net architecture

548


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

1370


Explain the purpose of cache? : Dot net architecture

470


difference between Response.write,server.transfer and also which one is used when ?

1464


Explain .net mobile events? : Microsoft dot net mobile

520


Explain pipelining? : Dot net architecture

590


Define dma? : Dot net architecture

546