What is composition? Explain the purpose of composition.
Answer / Sunder Singh
Composition is a way of aggregating objects by creating a new object which contains the instance of other objects as its parts. The purpose of composition is to build complex objects from simpler ones, promoting modularity and reusability in object-oriented programming.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is iterator a class or interface? What is its use?
What is composition? Explain the purpose of composition.
What is Object Constraint Language (OCL)?
What are the major differences between late and dynamic binding?
Can you explain primordial class loader?
What is the use of destructive method?
explain dynamic binding
Explain the meaning of object in object oriented programming?
Can an interface contain fields?
Is it possible to override private virtual methods?
Differences between functional programming and object-oriented programming?
What is the main use of message metaphor in object-oriented programming?