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 post back c#?
Explain the difference between a Private Assembly and a Shared Assembly
Are objects passed by reference in c#?
What is collection class c#?
How can we sort an array in c#?
What is serialization in .net?
Why do I get a "cs5001: does not have an entry point defined" error when compiling?
What is var c#?
What is class in oops with example in c#?
I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??
What is a service layer c#?
How to declare a property in a class?
Which is the base class in c#?
What is an inheritance in c#?
Is hashset serializable c#?