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
Explain .net mobile input controls? : Microsoft dot net mobile
What is Com Callable wrapper?when it will created?
Explain the difference between inprocess vs out process session state : Dot net architecture
How cache is used? : Dot net architecture
What is .net viewstate?
What is IL code, CLR, CTS, GAC & GC?
What is difference between .net and visual studio?
What is a managed code? : Dot net architecture
Explain the use of virtual, sealed, override, and abstract.
Explain the race around condition? How can it be overcome? : Dot net architecture
Explain different pipelining hazards and how are they eliminated? : Dot net architecture
Explain cache memory? : Dot net architecture
How can I create a application?
What is .net mobile automatic paging? : Microsoft dot net mobile
Explain difference between state server and sqlserver? : .NET Architecture