Podcast
Questions and Answers
In object-oriented programming, which relationship represents tight coupling?
In object-oriented programming, which relationship represents tight coupling?
- Association (correct)
- Aggregation
- Inheritance
- None of the above
Which form of association represents loose coupling?
Which form of association represents loose coupling?
- Composition
- Aggregation (correct)
- Inheritance
- None of the above
If an object of a class is declared as a data member inside another class, it represents which type of relationship?
If an object of a class is declared as a data member inside another class, it represents which type of relationship?
- Association (correct)
- Inheritance
- Composition
- Aggregation
Which relationship should be used when an 'is-a' relationship exists between two types?
Which relationship should be used when an 'is-a' relationship exists between two types?
If a dependency object does not exist without the dependent object, it represents which form of association?
If a dependency object does not exist without the dependent object, it represents which form of association?