Modelling object-oriented software – an introduction
Modelling object-oriented software – an introduction

Start this free course now. Just create an account and sign in. Enrol and complete the course for a free statement of participation or digital badge if available.

Free course

Modelling object-oriented software – an introduction

3.2.5 Notation for classes

For reasons of clarity it will be useful to distinguish things in the real world, such as the list of categories produced above, from the conceptual classes and objects that will represent them in our model. To make this distinction clear, we will be showing, as above, categories of entity from the system domain in the same font as the rest of the text, and starting with a lower case letter unless at the beginning of a sentence (or, as in the case of ‘DVD’, where the entity name itself starts with an upper-case letter). However, the corresponding conceptual classes in the model (and their attributes) will be denoted in a different font dvd. It is important to realise that the classes being dealt with are conceptual classes and not software classes.

Class names are always singular nouns, and each name should be a single word starting with an upper-case letter. The name chosen for a class should give some indication of the type of entity its instances are supposed to represent. Where more than one word is needed to achieve this, we will run the words together, capitalising the first letter of each word bar code reader.

Applying these notational rules to the list of classes we have decided to include in our model for the DVD Library System, we have dvd, film memberand loan.

It is important to adhere to a set of agreed conventions for naming and capitalisation.


Take your learning further

Making the decision to study can be a big step, which is why you'll want a trusted University. The Open University has 50 years’ experience delivering flexible learning and 170,000 students are studying with us right now. Take a look at all Open University courses.

If you are new to University-level study, we offer two introductory routes to our qualifications. You could either choose to start with an Access module, or a module which allows you to count your previous learning towards an Open University qualification. Read our guide on Where to take your learning next for more information.

Not ready for formal University study? Then browse over 1000 free courses on OpenLearn and sign up to our newsletter to hear about new free courses as they are released.

Every year, thousands of students decide to study with The Open University. With over 120 qualifications, we’ve got the right course for you.

Request an Open University prospectus371