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 race around condition? How can it be overcome? : Dot net architecture

532


What is an interrupt? : Dot net architecture

508


What is the problem with .net generics?

609


Explain different pipelining hazards? : Dot net architecture

477


Explain the race around condition? : .NET Architecture

515






Explain Intermediate Language?

611


Define cache? : Dot net architecture

550


Explain about microsoft visual studio?

556


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

536


What are the important principles of soa (service oriented architecture)?

501


What is WPF and WCF?

578


How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts

620


Differences between VS 2005, 2008 and 2010 ?

584


Explain different pipelining hazards and how are they eliminated? : Dot net architecture

503


What do you know about machine.config file ?

572