what is the difference between interface and abstraction?
Answer Posted / anshul jain
An interface cannot provide any code, just the signature.
An abstract class can provide complete, default code and/or just the details that have to be overridden.
An interface cannot have access modifiers for the subs, functions, properties etc everything is assumed as public
An abstract class can contain access modifiers for the subs, functions, properties
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is sealed class in c#?
Why extension method is static?
Explain types of comment in c# with examples
What is managed or unmanaged code?
How long can a string be c#?
How does yield return work c#?
What is the C# syntax to catch any possible exception?
Can struct inherit from class c#?
Why do we need constructor in c#?
Why dictionary is used in c#?
What are the features of c#?
What is iformatprovider in c#?
Give an example to show for hiding base class methods?
what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?
Enlist some of the properties of a thread class?