Encapsulation means hiding attributes in programming so that you can make changes in one place without having to also make changes in the other parts of an application. Otherwise, if you make information more open, you risk a change in one location leading to cascading, multiple changes elsewhere. It's better to restrict the direct access of one piece of data. If you've ever wondered, "What is encapsulation?" this online tutorial explains the issue in more depth.
Next up is the idea of Encapsulation.…Think capsule like a space capsule or medication capsule or a food container.…This is the idea of surrounding something, not just to keep the contents…together, but also to protect those contents.…Now, in Object Orientation, this first refers to the idea of taking our…attributes and then taking our behaviors and bundling them together in the same…unit, the same class. But it's really more than that.…We also want to restrict access to the inner workings of that class or any…objects based on that class, and this is referred to as information hiding or data hiding.…
The principle is that an object should not reveal anything about itself except…what is absolutely necessary for other parts of the application to work.…Let me give you a simple specific example.…If we have this bank account class, well, we don't want some other part of our…application to be able to reach in and change the balance of any object without…going through the deposit or the withdrawal behaviors.…
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.