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 / anwar .s

Abstract class:
.class inherites one class at time
(eg)class A extends B
.if we need two class two properties.Abstract class is not
possible.becoz it doesn't support multiple inheritance
(eg)class A extendssB,c->not possible.
.we cannot create object for abstract class.it doesn't
occupy memory
.it gives structure to program
.we cannot inherits properties to Abstract class.but we can
inherits all the properties from abstarct class.
.Abstract class have atleast one Abstract method
Interface:
.interface is nothing but u give structure for project will
be created on our desire
(eg) u give plan of house to buit.u told that i want this
model house.similiar to that programmer developed the
project according to ur plan they develop the code.they cant
change ur plan bcoz all are abstract
.by using interface multiple inhertance is possible
.(eg)interface implements classA,B,c...n
.interface is bodyless.
.the variable decalared inside the interface act as final
variable.we cannot re assign
(eg)final int a=10
int a=15 it shows error while compiling.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between an event and a delegate?

996


Explain write back and write through caches? : Dot net architecture

1038


Explain the difference between state server and sqlserver : Dot net architecture

895


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

1091


What is the difference between primary & secondary storage device? : Dot net architecture

978


Can you explain scriptmanager control?

1019


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

993


Explain about appdomains?

1037


Can I create my own context attributes?

974


What is difference between Desktop, Client Server & Web based applications?

1056


Explain the types of memory management? : .NET Architecture

940


Explain how cache is used? : Dot net architecture

1083


Explain pipelining? : .NET Architecture

969


What is .net mobile images control. Explain with an example? : Microsoft dot net mobile

951


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure. : Dot net architecture

961