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 - Python Tutorial
From the course: Programming Foundations: Object-Oriented Design
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
-
-
-
-
-
-
-
(Locked)
Creating class diagrams: Attributes2m 24s
-
(Locked)
Creating class diagrams: Behaviors3m 9s
-
(Locked)
Converting class diagrams into code4m 29s
-
(Locked)
Instantiating classes3m 39s
-
(Locked)
Class with multiple constructors2m 29s
-
(Locked)
Static attributes and methods4m 19s
-
(Locked)
Challenge: Jukebox class diagrams1m 21s
-
(Locked)
Solution: Jukebox class diagrams5m 8s
-
(Locked)
-
-
-