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 cache memory? : Dot net architecture

528


How resource files are used in .net?

542


Explain the race around condition? : .NET Architecture How can it be overcome? : .NET Architecture

494


When do I need to use gc.keepalive?

639


Explain the Lapsed Listener problem in .net

665






How do I write to the application configuration file at runtime?

518


What is .net mobile utility controls. : Microsoft dot net mobile

495


difference between Response.write,server.transfer and also which one is used when ?

1458


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

509


What are end points, contract, address and bindings?

518


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

508


Explain a .net mobile example with details? : Microsoft dot net mobile

471


What is .net transaction?

475


How to upload in video,mp4,in .net 4.5 ..?

552


What is the difference between metadata and menifest ?

467