Domain Model - knilios/ku-polls GitHub Wiki

Iteration 2 Domain Model

domain model new There are 2 classes

  1. Question class - Represents the poll question.
  2. Choice class - Represents the questions in the polls.

The Question class can have multiple Choice classes but a Choice can only be in one question.

Iteration 3 Domain Model

image

The User is the voter of any Choice. A Choice can have several Users voting on it. The User is also a participant in each Question when they vote for each Choice, therefore, a Question can contain multiple Users.