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
Is array ienumerable c#?
What is ispostback c#?
I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?
how to implement a web service in .net
Which debugging tools you can use in the .NET ssSDK?
Is is possible to force garbage collector to run?
What are cookies in c#?
Can a class be protected in c#?
what are nullable types in c#
What are native functions?
What are the string functions in c#?
What is difference between var dynamic and object in c#?
Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?
What is toint32 c#?
Can we use "this" command within a static method?