What is the difference between Abstract and Interface?
Answer Posted / ram praswesh kumar
[1]:-> An abstract class contain abstract method and non-
abstract method, but In interface all method are implictly
abstract.
[2]:-> An abstract base class can have private,public and
protected access specifier but all member in interface are
implicitly public.
[3]:- A class can inherit only single abstract class but
can implement more than one interface.
[4]:- An abstract class can implement interface but
interface cannot extend abstract class even concrete class.
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
Can a class have multiple constructors c#?
What is the use of console readkey in c#?
What is the use of table aliases?
What is the difference between hashtable and dictionary?
What are jagged arrays used for?
Why do we need escape characters?
What is array c#?
What is a scope in c#?
What is the difference between Singleton design pattern and Factory design pattern?
Describe the parts of assembly.
Are c# strings immutable?
How can you sort strings in array that are passed to method as arguments?
What is the use of protected in c#?
What do you mean by parsing and how to parse a date time string in c#?
Define the term immutable ?