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
Explain the difference between .net and c#?
What are the different ways of method can be overloaded?
How do I format a string in c#?
Is string a primitive data type in c#?
What is difference between static and readonly in c#?
What is a jagged array?
How can you sort strings in array that are passed to method as arguments?
Can we set image Source dynamically using C# in WPF application?
Which compiler switch creates an xml file from xml comments in the files in an assembly?
What is the difference between disposing of () and finalize() methods in c#?
Why we need get set property in c#?
What is gac? How to put assembly in gac?
What is garbage collector and where should you use in .NET?
Is nullable type c#?
how encapsulation is implemented in c#