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
Explain metadata in c#.
What is lastindexof c#?
What is the difference between protected and internal in c#?
Distinguish between system.string and system.text.stringbuilder classes?
What does clr stand for?
How do I download a program to my desktop?
List down the differences between “dispose” and “finalize” methods in c#.
Write a program in C# for checking a given number is PRIME or not.
What are the three types of predicates?
What are the advantages of properties in c#?
What are handlers in c#?
What is dll hell, and how does .net solve it?
Are value types sealed?
What framework is used for performance testing/load testing?
Explain About disco and uddi