Difference between abstract class and interface

Answer Posted / kannan

Abstract class: We no need to create the object for the
abstract class, abstract class must be sub classed.
Abstract class may contain its default implementation.
Interface: It is just like a check list. All the methods is
interface should be a public.It contain only the method
declaration. If one class implements the interface means,
that class should give the implementation for the all the
methods.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is biginteger and when would you use that?

728


Explain COM with example?

729


Explain some of the disadvantages due to microsoft.net?

739


What is the use of web.config?

793


Differences between VS 2005, 2008 and 2010 ?

768


Explain Intermediate Language?

836


how to change the application name?

1706


What is a managed code? : Dot net architecture

737


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

696


what is diffrent beatween localprinter and networkprinter

1543


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

751


5. Wcf- Session Managment

1733


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

2095


Explain How to improve the cache performance? : Dot net architecture

712


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

819