Join Barron Stone for an in-depth discussion in this video Composition, part of Programming Foundations: Object-Oriented Design.
- A more specific form of aggregation…is something called composition.…Like aggregation, composition is based around…a has-a relationship between objects…but it specifically implies ownership.…I might say that a spaceship has an engine,…but more accurately, I should that…the spaceship owns the engine.…Composition implies ownership and an engine has…no meaning or purpose in the system without a spaceship.…- It's like attaching the object to…one of these model ships.…The spaceship has a shield and,…since it's a star fighter, it has a weapon.…
Or I should say, it owns a weapon.…- Right.…The space ship is composed of several different objects…that each have their own attributes and behaviors.…But a key difference between composition and aggregation…is that in a composition situation,…if the owning object is destroyed by, say,…an asteroid ...…- Or an Olivia.…- The contained objects are destroyed, too.…The ships engine, its shield, its weapons,…those are all gone.…Now, although aggregation may not always…be worth showing in a UML diagram,…
Released
11/27/2018- Object-oriented basics: objects, classes, and more
- Encapsulation
- Inheritance
- Defining requirements
- Identifying use cases, actors, and scenarios
- Domain modeling
- Identifying class responsibilities and relationships
- Creating class diagrams
- Using abstract classes
- Working with inheritance
- Developing software with object-oriented design principles
Skill Level Beginner
Duration
Views
Related Courses
-
Programming Foundations: Databases
with Simon Allardice3h 11m Appropriate for all
-
Introduction
-
What you should know1m 33s
-
1. Object-Oriented Fundamentals
-
Object-oriented thinking4m 23s
-
Objects5m 1s
-
Classes4m 38s
-
Abstraction2m 32s
-
Encapsulation3m 38s
-
Inheritance4m
-
Polymorphism4m 9s
-
-
2. Requirements
-
Defining requirements5m 9s
-
FURPS+ requirements2m 37s
-
-
3. Use Cases and User Stories
-
Use cases4m 57s
-
Identifying the actors3m 39s
-
Identifying the scenarios4m 18s
-
Diagramming use cases3m 38s
-
User stories3m 53s
-
Challenge: Jukebox use cases1m 11s
-
Solution: Jukebox use cases2m 44s
-
-
4. Domain Modeling
-
Identifying the objects3m 52s
-
CRC cards2m 58s
-
-
5. Class Diagrams
-
Instantiating classes3m 39s
-
6. Inheritance and Composition
-
Using inheritance2m 44s
-
Interfaces4m 15s
-
Aggregation2m 3s
-
Composition1m 45s
-
7. Software Development
-
Software testing3m 38s
-
Design patterns3m 48s
-
Conclusion
-
Next steps50s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Composition