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


Please Help Members By Posting Answers For Below Questions

What are collection classes?

463


What is inner class in c#?

511


Is c# easier than javascript?

519


What is Delegate and what is it used for ?

572


What is a string in c#?

473






What is getenumerator?

450


What is 8 bit signed integer?

471


What is dependency injection?

553


What is dynamic object in c#?

522


What are c# i/o classes?

561


What are constants in c#?

552


What is serializable in c#?

487


What is arraylist?

531


what is IFormatable

575


What is the difference between a constant and a static readonly field?

517