Object-oriented programming works by designating classes that act as objects. Identifying the classes allows you to associate different pieces of information and setup functions to act on those classes. Picking out classes helps you determine what functions need to affect what objects. Learn how to find classes from use cases and user stories by watching this online video.
- View Offline
So step 1, what we do is collect our Use Cases, our User Stories, and any other…written requirements together.…And here's where we have one of the greatest benefits of having these written…descriptions of our application.…We just go through them and start picking out all the nouns.…Just start highlighting or underlining, and make a list of them.…Because these are your possible objects, your candidate objects.…Now when we're gathering, we don't analyze or judge them here.…We don't worry if there's a better word to use or if we perhaps used the…different noun to describe the same thing on another card.…
We just start making the list.…We also don't worry we might miss one, it happens.…Just take a first run through picking out all the nouns.…So I've done them here just on this single casual Use Case to create a partial…model, and you'll end up with a list of nouns, potential objects.…You can then first take a pass through this and find if there's any obvious duplicates.…From my application I referred to the word Sale and the word Order to mean…
Let Simon Allardice introduce you to the terms—words like abstraction, inheritance, polymorphism, subclass—and guide you through defining your requirements and identifying use cases for your program. The course also covers creating conceptual models of your program with design patterns, class and sequence diagrams, and unified modeling language (UML) tools, and then shows how to convert the diagrams into code.
- Why use object-oriented design (OOD)?
- Pinpointing use cases, actors, and scenarios
- Identifying class responsibilities and relationships
- Creating class diagrams
- Using abstract classes
- Working with inheritance
- Creating advanced UML diagrams
- Understanding object-oriented design principles