While programming, drafting use cases and user stories can point to class responsibilities. These are the actions that each class will take. For example, a customer might be responsible for paying for items, entering payment information, and providing an address. Identifying class responsibilities allows you to assign functionality based on those responsibilities. Learn how to quickly and easily define responsibilities for classes by watching this online video.
We're trying to get to the point where we can truly identify what are and what…aren't classes that we need to create. And much of this comes from figuring…out the responsibilities of our conceptual objects, and this will be the…behavior what will become methods in our objects, and here is a great starting point for this.…Just as we started off by looking at the nouns in our written description…to figure out our potential objects, we can go back to the use case or a…user story, and look for verbs and verb phrases to pick responsibilities.…
So in this case, we'd have things like customer verifies items, provides payment…and address, process sale, validate payment, confirm order, provide order…number, check order status, and send order details email.…Now, not all of these will become behaviors, some will be combined, some will…need to be split apart, and some will just not be needed or be replaced by…something else, but they are a good starting point, and they will often prompt…others, or prompt some discussion.…
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
Skill Level Intermediate
1. Core Concepts
2. Object-Oriented Analysis and Design
Defining requirements6m 9s
3. Utilizing Use Cases
4. Domain Modeling (Modeling the App)
5. Creating Classes
6. Inheritance and Composition
7. Advanced Concepts
8. Object-Oriented Design Patterns
9. Object-Oriented Design Principles
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.