What is the difference between Abstract and Interface?
Answer Posted / nevin jain
-Abstract class contains both data members n members
functions.... but Interface contains only members functions
-Abstract class contains both complete n incomplete methods,
incomplete methods has to be explicitly marked as abstract
method...where as Interface contains all incomplete method n
no abstract keyword is requires explicitly.
-Abstract class n theirs members can be public,private or
protected whereas... By default access modifier are public n
no other access modifier can be given to interface n theirs
members.
-Abstract class members are inherit into derived class as
inherit members whereas... Interface members as inherited as
prototype members..
-Abstract class contain constructor whereas.. interface does
not contain..
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Why do we need static in c#?
What is string interpolation in c#?
What are custom attributes in c#?
Explain use of abstract and sealed classes in c#?
What is the difference between iqueryable and ienumerable?
How to add controls dynamically to the form using c#.net.
Explain streamreader/streamwriter class?
What is difference between array and list?
Explain data types in c#?
What is the use of readkey in c#?
What is static noise?
write a C# Program add two matrix ?
what are pointer types in c#
What are interfaces in c#?
What is multithreading? What are the problems that comes with multithreading and how to manage them?