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
Why is encapsulation used?
Which method cannot be overridden?
What is the purpose of enum?
How do you define a class in oop?
What is the difference between abstraction and polymorphism?
what's the basic's in dot net
What is polymorphism and its types?
What is abstraction and encapsulation?
What is difference between abstraction and encapsulation?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is the importance of oop?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
Whats oop mean?
#include
What is abstract class in oops?