From the course: Programming Foundations: Object-Oriented Design

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Identifying class relationships

Identifying class relationships - Python Tutorial

From the course: Programming Foundations: Object-Oriented Design

Start my 1-month free trial

Identifying class relationships

- Once we have the potential objects picked out for our conceptional model, it's useful to indicate the main relationships or associations between those concepts by drawing lines between the boxes. And since I drew the last diagram, it's your turn to take the marker. - Fine. - Many of these relationships will be obvious but we can always reference our written use cases and user stories if needed. I know that the idea or concept of a player has some kind of relationship or interaction with the astroid. So draw a line between those boxes. The astroid exists within the area. So that's another relationship. And the spaceship and missile also exist within the area. There's a relationship between the spaceship and the missile. As well as the missile and the path it follows. And though I'm not completely convinced this should be an object, the astroid and spaceship both travel in a direction. Now, optionally, it may be useful to add a short note to actually describe the relationship. It…

Contents