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
What is data type in c# with example?
What do you mean by casting a data type?
Why do we need serialization?
Does unity use c++ or c#?
What is the C# syntax to catch any possible exception?
What is cts, clr?
Explain the difference between directcast and ctype.
How many bytes is an int c#?
What is enumerable in c#?
How to find whether the application is run from inside ide or not?
Why ienumerable is used in c#?
What is a decimal in c#?
What does type safety mean?
If you want to write your own dot net language, what steps you will u take care?
Can abstract class instantiated c#?