What?s the difference between an interface and abstract class?
Answer Posted / nikhil
Difference
1. Interface doesn't allow accessibility modifier where as
we can specify accessibility modifier (public, private,
protected) for an abstract class.
2. Interface doesn't provide the implementation of the
members declared. This is not the case with abstract class
3. A class can inherit one and only one abstract class,
where as a class can implement one or more interfaces
Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
Is c# 8 released?
What are custom attributes in c#?
What is executescalar in c#?
Value Type and Reference Type Data type in C#?
What is an assembly qualified name? Is it a filename? How is it different?
Why do we use virtual methods in c#?
What are the advantages of using assemble language programming?
What is the use of console?
what is the difference between the debug class and trace class?
What is the ouput of the following program?
What is the use of tryparse in c#?
If dll and exe files are same it means you can deploy both the files in gac?
What is the main purpose of linq?
Does constructor return any value in c#?
What do you mean by synchronous and asynchronous operations?