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

Can you see a loop recorder?

675


What is gridview c#?

695


Does c# support multiple inheritance (mi)?

748


What is the difference between firstordefault and first?

711


Will the following code compile?

772


Is c# an open source?

695


What is a class c#?

677


Is c# good for web development?

755


How big is a float?

726


What does xpath return?

773


Define c# delegate?

773


What is yield in c#?

680


Is c# a strongly-typed language?

741


What is the resgen.exe tool used for?

767


What is polymorphism and its types in c#?

670