Difference between abstract class and interface

Answer Posted / shreeram sahu

1.abstract class contain abstract and non abstract methods
but interface contain only abstract methods.
2.abstract method can be declared in public or protected
section. but all components of interface by default are
public.
3.a class can inherit only one abstract class but a class
can implement any no of interfaces.
4.abstract class components are directly reffered in
subclass.butinterface components must be prefixed with the
name of the interface.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

686


How cache coherency is eliminated? : Dot net architecture

656


Explain 'managed' mean in the .NET context

869


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure on hardware that converts the ascii value to binary? : .NET Architecture

625


define cache memory? : Dot net architecture

706


How to improve the cache performance? : .NET Architecture

717


Define a virtual memory? : Dot net architecture

666


Can I create my own context attributes?

712


Explain about validation?

767


What actually happes when you add a something to arraylistcollection ?

659


What is one way operation?

721


What is the use of TPL DATAFLOW?

707


What is .net mobile images control. : Microsoft dot net mobile

671


Explain COM with example?

718


What is the difference between metadata and menifest ?

636