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 desirable attributes for memory managment?
Can we override main method?
What is oops and its features?
What is coupling in oops?
What is abstract class in oops?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is balance factor?
Which language is not a true object oriented programming language?
What is meant by multiple inheritance?
What is polymorphism in oops with example?
State what is encapsulation and friend function?
What is the difference between a mixin and inheritance?
What is oops with example?
What is a null tree?
What is a class oop?