Tell me the scenario,Where we can use interfaces or
Abstract class.And What is the difference between
interfaces and abstract class?
Answer Posted / bhavani
The whole reason you have a special Interface type-category
in addition to abstract base classes in C#/Java is because
C#/Java do not support multiple inheritance.
C++ supports multiple inheritance, and so a special type
isn't needed. An abstract base class with no non-abstract
methods is functionally equivalent to a C#/Java interface.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the difference between encapsulation and polymorphism?
What is property in oops?
What is inheritance in simple words?
Is enum a class?
What is an example of genetic polymorphism?
What is class and object with example?
Why do we use polymorphism?
What is polymorphism in oops with example?
Why do we use encapsulation in oops?
How many human genes are polymorphic?
When not to use object oriented programming?
How can you overcome the diamond problem in inheritance?
What is multilevel inheritance in oop?
Why do we use inheritance?
How to improve object oriented design skills?