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
Explain cache memory? : Dot net architecture
How resource files are used in .net?
Explain the race around condition? : .NET Architecture How can it be overcome? : .NET Architecture
When do I need to use gc.keepalive?
Explain the Lapsed Listener problem in .net
How do I write to the application configuration file at runtime?
What is .net mobile utility controls. : Microsoft dot net mobile
difference between Response.write,server.transfer and also which one is used when ?
What are the five stages in a dlx pipeline? : Dot net architecture
What are end points, contract, address and bindings?
Explain hard disk and what is its purpose? : Dot net architecture
Explain a .net mobile example with details? : Microsoft dot net mobile
What is .net transaction?
How to upload in video,mp4,in .net 4.5 ..?
What is the difference between metadata and menifest ?