Class diagrams are representations of hierarchical and relational data among objects. This online training video covers the basics of converting class diagrams to code. Learn the step-by-step procedures of this intermediate level technical task in order to turn a simple UML class diagram to code in programming languages.
We're focused on the ideas and concepts of object orientation here, but we…never forget that the entire point is that we'll convert this into a programming language.…And it can be useful to see just how close many of the languages are with these same concepts.…So I have a very simple UML class diagram here with a couple of attributes and a…couple of behaviors, because I want something I can demonstrate in just a few…lines of code in several different languages.…So, this will be a Spaceship class.…It has two attributes, one is called name which is a String, and the other is…shieldStrength which I've said here will be an Integer.…
Name is public and shieldStrength is private, meaning it would be hidden from…other objects directly.…And it has two operations, two behaviors. They're both public.…Fire is going to return us a string and reduceShields returns nothing or at…least nothing that's written in this diagram and takes an Integer, very…straightforward, very simple.…Obviously, a full spaceship class would have a lot more behaviors than this, but…
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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.