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
What is a service contract, operation contract and data contract?
Can you explain update progress control?
Explain hard disk? : Dot net architecture
What actually happes when you add a something to arraylistcollection ?
Explain the difference between primary & secondary storage device? : .NET Architecture
Explain dma? : .NET Architecture
What does this do? Gacutil /l | find /i "corillian"
what is diffrent beatween localprinter and networkprinter
What is an interrupt? : Dot net architecture
What is a virtual memory? : Dot net architecture
What are the main Tools to develop .Net Application?
Explain the difference between inprocess vs out process session state : Dot net architecture
How will you do windows authentication and what is the namespace?
Explain how does .net mobile work? : Microsoft dot net mobile
What is .net mobile images control. Explain with an example? : Microsoft dot net mobile