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
Does c# have primitives?
What is different between Implicit conversion and Explicit conversion in C#?
What is jagged array in c#?
What is difference between .net and c#?
Define constructor in c#.
What is meant by collections in c#?
How do I join one form to another in c#?
Is it possible to execute multiple catch block for a single try statement?
What is a data set in c#?
What is the namespcae generally given to the webpage of the .NET Framework ?
What is mvc pattern in c#?
What does console mean c#?
How to add a readonly property in c#.net
Explain what are the steps for creating clr trigger?
What is asax file in c#?