What?s the difference between an interface and abstract
class?
Answer Posted / sunitha
Interface - All Methods in the Interface are abstract
Methods.So the Access Modifier is public by default which
helps the Class ABC Implementing the Interface to define
the code for the methods
Abstract - > Protected Methods can be defined & implemented
in Abstract Class. This class does some implementation of
its own & leaves the remaining implementation to the
Derived Class
1.Multiple Inheritance is possible through Interface only.
2.If we add any new method in the interface, then all the
derived class has to be altered to include the
implementation of the method.
3.Interface is on the Top Level
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Expalin the way you implement inheritance by using VB.NET/C#?
What is the difference between field and property in c#?
Is visual c# free?
Why do we use interfaces in c#?
How can you set image source dynamically from c# application to ”test.png” file?
What is xpath in c#?
What is the difference between hashtable and dictionary?
What are the methods in c#?
How to add a readonly property in c#.net
What is COM Interoperability?
How to Show Message box in Metro Style App?
In which way you can convert a value-type to a reference-type?
What are the Types of configuration files and their differences
Can hashset contain duplicates c#?
What is an assembly qualified name