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

Is c# an array?

480


What is a dictionary in c#?

498


What is iqueryable in linq?

497


What is a statement c#?

508


Is xml tags are case sensitive?

485






Why do we need generics in c#?

512


What is the difference between dll and lib?

480


Can hashtable have duplicate keys?

497


Please write a program to display “welcome to bestinterviewquestion.com” in c#?

534


Which sorting algorithm is best?

563


What is byte c#?

450


What does using do in c#?

517


How to put assembly in gac?

545


Which is the best language for desktop application?

472


What is a partial class. Give an example?

515