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
Explain dataset.acceptchanges method in .net?
Is c# strongly typed?
How to update the gui from another thread in c#?
Classes and structs can be declared as static, is this statement true or false?
Explain copy constructor?
How many bytes is a char c#?
What is delegates in c# and uses of delegates?
Is stringbuilder better than string?
What is an assembly loader?
List down the differences between public, static and void keywords?
What is difference between an Structure and Class?
What Is An Interface Class?
What is getenumerator?
What is a hash table c#?
What is a type c#?