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 / thakur laxmikant

1. Abstract class can have implemented methds
but interface contains only final varibles and
method declaration(signature);

2. In Abstract class there is "IS A " Kind of relationship
between abstract class and its implemented method class
but in interface it can be between any non-relative
classes.

3. Absrtact class can be extended by only one class;
Interface can be implemented by more than one class;
ie. class can inherit only one abstract class
but class can implement more than one interface.

4.A class implementing an interface has to
implement all the methods of the interface,
but the same is
not required in the case of an abstract Class.

5.Access modifiers (protected, abstract, public, etc. )are
useful in abstract Classes but not in interfaces.

Is This Answer Correct ?    20 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are public and private assemblies ?

1000


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

2368


What is the problem with .net generics?

1133


What is .net mobile utility controls. : Microsoft dot net mobile

1028


What is a virtual memory? : Dot net architecture

1011


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

944


How do I stop a thread?

1007


Define cache coherency and how is it eliminated? : Dot net architecture

999


Explain how does .net mobile work? : Microsoft dot net mobile

908


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

2122


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

1025


Explain difference between machine config vs. Web config : Dot net architecture

955


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

1014


What is the cli? Is it the same as the clr?

1012


What's the difference between an application and a program?

1230