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
HttpHendler and HttpModules
What are the options provived by vss to the user? how it will help us while delevoping application?
Explain the five stages in a dlx pipeline? : Dot net architecture
readonly syntax ?
Why only boxed types can be unboxed?
how to change row background color in gridview
Explain about the base class library provided by microsoft.net?
What is a service contract, operation contract and data contract?
What is .net transaction?
how to add list of items in a web application and win application?
Explain the difference between primary & secondary storage device? : Dot net architecture
Explain the components required to develop mobile applications with .net mobile? : Microsoft dot net mobile
Explain difference between inprocess vs out process session state? : .NET Architecture
What do you know about machine.config file ?
What are different types that a variable can be defined and their scopes ?