Chapter 3. Working with Object-Orientation

What You'll Learn in This Hour:

  • How to model a class

  • How to show a class's features, responsibilities, and constraints

  • How to discover classes

Now it's time to put the UML together with the object-oriented concepts you learned in the last hour. In this hour, you'll firm up your knowledge of object-orientation as you learn more about the UML.

Visualizing a Class

As I pointed out in the first hour, a rectangle is the icon that represents a class in the UML. From Hours 1, “Introducing the UML,” and 2, “Understanding Object-Orientation,” recall that the name of the class is, by convention, a word with an initial uppercase letter. It appears near the top of the rectangle. If your class has a two-word name, join ...

Get Sams Teach Yourself UML in 24 Hours, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.