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
Which controls do not have events?
What is strongly typed view?
Is struct object oriented?
Explain the importance and use of each, version, culture and publickeytoken for an assembly.
Explain about Error handling and how this is done
What sort algorithm does c# use?
Describe the difference between inline and code behind - which is best?
What is field in c#?
Where is the keyword void used?
Are c# references the same as c++ references?
How do I start a program in c#?
What is short in c#?
How do you achieve polymorphism in c#?
What is selector c#?
What are the boolean data types in c#?