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


Please Help Members By Posting Answers For Below Questions

Is array ienumerable c#?

467


What is ispostback c#?

478


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?

572


how to implement a web service in .net

468


Which debugging tools you can use in the .NET ssSDK?

545






Is is possible to force garbage collector to run?

522


What are cookies in c#?

540


Can a class be protected in c#?

486


what are nullable types in c#

522


What are native functions?

470


What are the string functions in c#?

518


What is difference between var dynamic and object in c#?

508


Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?

530


What is toint32 c#?

618


Can we use "this" command within a static method?

549