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.

Creating class diagrams: Attributes

Creating class diagrams: Attributes - Python Tutorial

From the course: Programming Foundations: Object-Oriented Design

Start my 1-month free trial

Creating class diagrams: Attributes

- All of our previous work, writing requirements and use cases and building a conceptual model, was to figure out our first set of classes, so now it's time to create a proper class diagram to visually represent them. And this is where specific object-oriented principles, like inheritance and polymorphism, can start coming into play. The most common format to use is the UML class diagram. These can get pretty advanced, but for this course, we'll stick with using just the most common aspects. Each class should have a name written in the singular form, not plural, and the standard is to use an uppercase first letter, so things like Asteroid, Missile, Spaceship. Now, you won't know all of the attributes yet, because the focus so far has been on class responsibilities and behaviors, but start by writing down any obvious ones, and you can always add more later. Use whatever naming convention is typical for your programming language. I'm using the common camel case format here, which starts…

Contents