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 are the benefits of polymorphism?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
is there any choice in opting subjects like 4 out of 7
Can you explain polymorphism?
How do you define social class?
What is coupling in oop?
How to improve object oriented design skills?
What is the difference between encapsulation and polymorphism?
What is the difference between abstraction and polymorphism?
Whats is abstraction in oops?
What is solid in oops?
What does and I oop mean?
What is a function in oop?
How can you overcome the diamond problem in inheritance?
What is an example of genetic polymorphism?