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 / rajneesh hajela

ABSTRACT CLASS:
1) we can't create object of abstract class.
2) we can declare a variable.
3) we can make normal method and abstract method.
4) we can't make method body with abstract method.
5) in derived class we can use abstract method by override
keyword.
6) we can't use multiple inheritance in abstract class.
7) 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


8)Abstract classes can inherit interfaces while interfaces
cannot inherit abstract classes
but class can implement more than one interface.
9) The members of the interface are public with no
implementation. Abstract classes can have protected
parts,static methods, etc.

10)An abstract class can contain fields,
constructors, or destructors and implement properties. An
interface can not contain fields, constructors, or
destructors and it has abstractmethod,property's signature
but no implementation etc.

Rajneesh Hajela
Gwalior(M.P.)

Is This Answer Correct ?    52 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we perform data binding in atlas?

983


Explain some of the disadvantages due to microsoft.net?

1032


What is the mesi? : .NET Architecture

1071


Explain cache memory? : .NET Architecture

1024


How is the using() pattern useful? What is idisposable?

1003


Explain how cache is used? : Dot net architecture

1144


How will you do windows authentication and what is the namespace?

1110


What is the .net class that allows the retrieval of a data element using a unique key?

1068


Do you know textbox and textview controls of .net mobile? : Microsoft dot net mobile

1098


What is the problem with .net generics?

1133


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

994


8. Oop-Why and were we use Interfacse and Abstract class.

2186


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

1019


how to change the application name?

2007


HttpHendler and HttpModules

2216