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 the method while we are using adapter and dataset ?
Session State and can i store desirialized object in state server, if yes how and if not why.
Which software is used for .net programming?
Explain some of the disadvantages due to microsoft.net?
How cache is used? : Dot net architecture
What is Object Caching in Visual Studio 2010?
Tell me .net mobile emulators? : Microsoft dot net mobile
What is Video Streaming in .net??
which is the institute in hyderabad for providing the live project industry training
Explain dotnet framework ?
What is parallel computing?
data types used in validation control
What are the five stages in a dlx pipeline? : Dot net architecture
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
what is polymorphism and advantage ?