MCQ
What is a relationship called when there is ‘has- a’ or ‘a-part-of’ relationship between two classes?
  • A
    Aggregation
  • B
    Composition
  • a or b
  • D
    Polymorphism

Answer

Correct option: C.
a or b
a or b

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free