Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain .net mobile input controls? : Microsoft dot net mobile

961


What is Com Callable wrapper?when it will created?

990


Explain the difference between inprocess vs out process session state : Dot net architecture

1150


How cache is used? : Dot net architecture

1052


What is .net viewstate?

979


What is IL code, CLR, CTS, GAC & GC?

1080


What is difference between .net and visual studio?

1023


What is a managed code? : Dot net architecture

1019


Explain the use of virtual, sealed, override, and abstract.

1037


Explain the race around condition? How can it be overcome? : Dot net architecture

1012


Explain different pipelining hazards and how are they eliminated? : Dot net architecture

983


Explain cache memory? : Dot net architecture

1011


How can I create a application?

986


What is .net mobile automatic paging? : Microsoft dot net mobile

1030


Explain difference between state server and sqlserver? : .NET Architecture

992