Multiple choice

In the object-oriented design of a card-playing program, suppose that “card deck” has been identified as one object and “user command” has been identified as another object. Focusing specifically on the card deck object, how does it relate to the user command object?

  1. A has-a relationship

  2. An is-a relationship

  3. An independent and equal relationship

  4. Both (1) and (2)

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

null