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
What are the different types of assembly?
Does unity require coding?
What are the differences between events and delegates in c#?
Contrast between an interface and abstract class?
Is it true that all c# types derive from a common base class?
What is a .aspx file?
What is dictionary and hashtable in c#?
Which of these statements correctly declares a two-dimensional array in c#?
Explain how do I get deterministic finalization in c#?
Differentiate between response.expires and response.expiresabsolute?
What are the properties of string?
Why do we need abstract class?
What's c# ?
What is default c#?
What is yield keyword?