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 / karthick

Unlike interfaces, abstract classes can contain fields that
are not static and final, and they can contain implemented
methods. Such abstract classes are similar to interfaces,
except that they provide a partial implementation, leaving
it to subclasses to complete the implementation. If an
abstract class contains only abstract method declarations,
it should be declared as an interface instead.

Multiple interfaces can be implemented by classes anywhere
in the class hierarchy, whether or not they are related to
one another in any way. Think of Comparable or Cloneable,
for example.

By comparison, abstract classes are most commonly subclassed
to share pieces of implementation. A single abstract class
is subclassed by similar classes that have a lot in common
(the implemented parts of the abstract class), but also have
some differences (the abstract methods).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

deference between display and visibility property of CSS

2216


what is tracing? Where it used?

1046


how to use custom field validation

2428


What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile

896


Explain cache? : .NET Architecture

945


What are the major differences between services and web services?

882


What are the types of memory management? : Dot net architecture

846


Whate are resource files? How are they used in .net?

850


What is Object Caching in Visual Studio 2010?

946


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

877


What is gui programming? : .NET Architecture

877


What is the numeric attribute of the textbox control in .net mobile? : Microsoft dot net mobile

919


What is MS chart control in visual studio?

1160


Explain some of the disadvantages due to microsoft.net?

933


Can I create my own context attributes?

916