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
How many variables do you need?
What is cli in c#?
What are the steps to create a webservice and consume it?
What is the .NET collection class that allows an element to be accessed using a unique key?
Can constructor be protected?
What is the implicit name of the parameter that gets passed into the set method/property of a class?
What does mean before a string in c#?
Explain about finalize method?
What is the usage of Enumeration in C# Programming and is it good to use or not ?
What is call back method?
How do you escape in c#?
What is primitive types in c#?
What is the do while loop code?
What is a ienumerator?
What is the default value of singleordefault?