Differentiate between an abstract class and an interface?
Answer / Vikas Dubey
An Abstract Class is a class that cannot be instantiated and it contains both abstract and concrete methods. An Interface is a completely abstract class, it only contains abstract methods and is used for achieving multiple inheritance. In Java, a class can extend only one abstract class but can implement multiple interfaces.
| Is This Answer Correct ? | 0 Yes | 0 No |
When do you prefer to use composition than aggregation?
1 Answers InfoAxon Technologies, Protech,
Where shall I go for Package Diagram?
Comment: C++ "includes" behavior and java "imports"
Is iterator a class or interface? What is its use?
Why is class hierarchies managed in object-oriented programming?
What is difference between static and non-static fields of a class?
Can we use static method definitions in interfaces?
What is Object Constraint Language (OCL)?
What is Polymorphism, overloading, overriding and virtual?
Explain the implementation phase with respect to oop?
What is static and dynamic Binding?
What are the interfaces you used in beans?