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 inheritance and polymorphism?
What is basic concept of oop?
why reinterpret cast is considered dangerous?
What is an advantage of polymorphism?
What are the 4 pillars of oop?
What is interface in oop?
What is polymorphism and its types?
what type of question are asked in thoughtworks pair programming round ?
Explain the concepts involved in Object Oriented programming.
What does it mean when someone says I oop?
Why is oop useful?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
How Do you Code Composition and Aggregation in C++ ?
What is destructor give example?
Where You Can Use Interface in your Project