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 are collection classes?
What is inner class in c#?
Is c# easier than javascript?
What is Delegate and what is it used for ?
What is a string in c#?
What is getenumerator?
What is 8 bit signed integer?
What is dependency injection?
What is dynamic object in c#?
What are c# i/o classes?
What are constants in c#?
What is serializable in c#?
What is arraylist?
what is IFormatable
What is the difference between a constant and a static readonly field?