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

What are the different pipelining hazards? : Dot net architecture

1019


Explain how cache is used? : Dot net architecture

1078


Explain the types of memory management? : .NET Architecture

939


What are the five stages in a dlx pipeline? : Dot net architecture

980


how to create applications by using Visual Studio 2012?

962


What is parallel computing?

959


if there are two application 1 and 2 having a variable x in both app if client1 changes value of x in 1 app client 2 want reads the value of x from 2 app what resultant value will he get

2322


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

983


Xmlserializer is throwing a generic "there was an error reflecting myclass" error. How do I find out what the problem is?

958


What is the difference between absolute expiration and sliding-time expiration?

1040


Whats new features in Visual Studio 2012?

976


Can you explain atlasuiglitz library?

928


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

2097


I want to create a project like google maps how can we do that with atlas?

946


What is the mesi? : .NET Architecture

1026