Difference between abstract class and interface

Answer Posted / sumit gupta

the basic logical difference is you create abstract class when there is a relation between two classes that will inherit the abstract class and you create interface for the classes which are not related to each other but do have some common functionality.

below link describes it quite nicely.

http://devworkexperience.com/2011/09/interfaces-vs-abstract-classes/

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is tracing? Where it used?

810


What are different types that a variable can be defined and their scopes ?

819


hi, kindly send WWF(.net 3.5) pdf notes to my id. thanx in advance, chays

2077


define cache memory? : Dot net architecture

723


What is the use of web.config?

796


Explain about metadata?

715


Define pipelining? : Dot net architecture

793


data types used in validation control

1930


What is boxing and unboxing? Does it occure automaatically or you need to write code to box and unbox?

733


Define cache? : Dot net architecture

727


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

756


Explain cache memory? : .NET Architecture

731


Define a managed code? : Dot net architecture

683


what is the difference between master page and content page?

2333


What is a service contract, operation contract and data contract?

717