Encapsulation, Cohesion and Coupling Lecture

To Read

Sections 5.1-5.2 of A First Course in Object Oriented Development.

Recording, Part 1

Encapsulation, Cohesion and Coupling Lecture, Part 1

Content, Part 1

  • 00:00 Overview of the Design Part of the Course
  • 02:24 Introduction to design
  • 06:50 UML for design diagrams
  • 21:02 Exercise in translating UML to code
  • 41:17 Overview of the design principles
  • 46:13 Encapsulation
  • 56:46 Exercise in Encapsulation

Recording, Part 1

Encapsulation, Cohesion and Coupling Lecture, Part 2

Content, Part 2

00:00 High cohesion
07:03 Exercise in cohesion
17:10 Low Coupling
23:24 Exercise in coupling

Solutions to Exercises

Here's the astah project with the solutions to the cohesion and coupling exercises, cohesion-coupling.asta

Here's a git repository with the solution to the exercise in implementing a sequence diagram, https://github.com/KTH-IV1350/UML-to-code Links to an external site..