From the course: iOS Development: Architecture

Unlock the full course today

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

The class diagram

The class diagram

From the course: iOS Development: Architecture

Start my 1-month free trial

The class diagram

- [Instructor] We can rely on class diagrams to model the structure of the software system. The class diagram shows the entities that form our system and the relations between them. The class is represented as a rectangle. The rectangle must contain, at least, the name of the class. Usually, we'll have one or two more compartments separated by horizontal lines. The middle compartment includes the class attributes. The operations are displayed in the lower section. We may hide or show the attributes in the operations compartment. The following example shows the class diagram of the Core Data Manager class. We can also display the visibility attributes for the attributes and the methods of the given class. Minus means private. Plus is public. And hash mark denotes protected visibility. A class diagram can incorporate information about class relationships. Inheritance is represented by a line with a hollowed triangle at one of its ends. The triangle points to the superclass, like in this…

Contents