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 hashtable in c# with example?
What do you mean by expression tree?
Is xamarin free?
What is callback in c#?
how to implement a web service in .net
what is a enumeration in c#
How to reverse each word in a string using c#?
Where are value types stored in c#?
What is streamreader/streamwriter class?
Illustrate race condition?
What is new method in c#?
What are the two kinds of properties in c#.
In object oriented programming, how would you describe encapsulation in c#?
Explain the feature of c# language?
What is gac? What are the steps to create an assembly and add it to the gac?