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
Can we customize the serialization process?
What is difference between events and delegates?
What does break do in loop?
What are types in c#?
Define satellite Assembly?
How Reflection is used and what it's significance ?
Hi to all..I have to create an intranet application on C#.NET windows Application so please please let can you people help me as iam new in .NET and if u have any samples or website address from where i can get sample please let know.
Explain constructor in c#?
Can a static class contain non static members?
How to find type of variable?
What is array collection?
Structs are largely redundant in c++. Why does c# have them?
What is difference between constants and read-only?
What is the difference between dynamic type variables and object type variables in c#?
What do you mean by casting a data type?