An abstract class is inherited, an Interface also
inherited(multiple inheritance), How it differences.
Answer Posted / priya arun
abstract class is just like a normal class ,but we can't
instantiate an abstract class.
One class can inherit one abstract class.
but interface is just define the signature..it doesnt have
any body.So the methods declared in the interface must
implement in the derived class.
Once we defined the interface any number of class can
implement it...
a class can implement more than one interface also.Through
this also we can achieve multiple inheritance in .net.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why do we Need of static class in c#?
What is xml serialization and deserialization in c#?
Should I use double or float?
What is the default boolean value in c#?
Can abstract classes be final?
What is difference between code access and role based security?
What is an array? Give the syntax for a single and multi-dimensional array?
What is an icollection in c#?
Write the syntax for catching an exception in c#?
What is the importance of closing an ado.net application?
What are object pooling and connection pooling and difference between them?
What is null propagation c#?
Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?
Is it not possible to store a boolean value as a variable?
What is default constructor in c#?