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

INTERFACE:
1)a class can implement any number of interfaces.
2)variables declared in interfaces are by default final
3)members on interfaces are public by default
4)should be implemented using keyword "implements"
5)absolutely abstract and cannot be instantiated.
6)requires more time to find the actual method in the
corresponding class
7) if we add a new method to an interface, then we have to
track down all implementations of interface and define
implementation of the new method.
ABSTRACT CLASS:
1)a class can inherit only one abstract class
2)may contain non-final variables
3)members can be declared with any access specifier
4)should be inherited using "extends" keyword
5)cannot be instantiated but can be invoked if main() exists
6)faster than interfaces
7)if we add a new method to abstract class, then we've the
option of providing default implementation and therefore all
existing code might work properly.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you Explain element .net mobile with example? : Microsoft dot net mobile

949


What is the use of web.config?

1128


Define a virtual memory? : Dot net architecture

914


How does .net remoting work?

1091


How cache coherency is eliminated? : Dot net architecture

922


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

926


Explain the purpose of cache? How is it used? : .NET Architecture

978


What is the difference between an event and a delegate?

990


Explain the race around condition? : .NET Architecture

1012


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form.

954


What is biginteger and when would you use that?

944


Explain hard disk and what is its purpose? : Dot net architecture

949


Explain domestic architecture artifacts? : .NET Architecture

941


how to add list of items in a web application and win application?

2072


12. Types of polymorphisem[Run and Design Exp.]

2070