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
List the fundamental oop concepts?
Can we inherit sealed class in c#?
Why do we use abstract class in c#?
Is it possible to have different access modifiers on the get/set methods of a property?
List down the differences between public, static and void keywords?
can you declare an override method to be static if the original method is not static?
What is the difference between overriding and overloading in systemverilog?
How do you convert byte array to hexadecimal string, and vice versa?
What problem does Delegate Solve?
What are the benefits of using generics in c#?
Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?
If dll and exe files are same it means you can deploy both the files in gac?
What is application object in c#?
What are jagged arrays used for?
Which are the access modifiers available in c#?