Difference between abstract class and interface

Answer Posted / leeladhar

abstract means hiding some thing and interface are use for
multiple inheritence because a subclass can't extend by two
base class it can implement by two interface only.

in abstract class some method will be abstract or some
method will be non abstract.
for abstract method you need subclass that will be define
base class's abstract method.
subclass is not mendatory to all abstact class.

in interface all method will be abstract type so for that
subclass is mendatory that will define method.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain hard disk and what is its purpose? : Dot net architecture

683


what is the difference between master page and content page?

2305


Define cache? : Dot net architecture

707


what is diffrent beatween localprinter and networkprinter

1529


Explain about microsoft visual studio?

723






Difference between throw exception and rethrowing ?

1829


What is the difference between absolute expiration and sliding-time expiration?

727


Explain the race around condition? : .NET Architecture

696


Xmlserializer is throwing a generic "there was an error reflecting myclass" error. How do I find out what the problem is?

727


What is cookie less session?

746


What is an interrupt? : .NET Architecture

638


Explain cache? : .NET Architecture

717


what is the difference between running an application with and without debugger?

1728


What is the purpose of cache? : Dot net architecture

703


Explain the purpose of cache? : Dot net architecture

633