Which of the following is tightly bound ? Inheritance or composition ?
Answer / akshay
Inheritance - classes are get tightly coupled with each other. Also it develops blood relationship between the classes.
Is This Answer Correct ? | 0 Yes | 0 No |
Explain serialization and overriding?
What is the difference between multiple and multilevel inheritance?
Explain what a method is?
A class inherits from 2 interfaces and both the interfaces have the same method name as shown below. How should the class implement the drive method for both car and bus interface?
How can we restrict inheritance for a class so that no class can be inherited from it?
Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?
What is the use of ‘finalize’?
How does abstraction differ from encapsulation.
Explain about polymorphism?
Comment: C++ "includes" behavior and java "imports"
What are a base class, subclass, and superclass?
Differentiate between Aggregation and containment?