- 46lessons
- 4guided projects
- 8module checkpoints
- 2.0hours of video
What you'll learn
- Model a domain as classes with one stated responsibility, enforced invariants and written method contracts.
- Choose between inheritance and composition and show the choice with a passing test suite.
- Design role interfaces, inject dependencies and keep dependency direction correct, checked by an architecture test.
- Choose, implement and test creational, behavioural and structural patterns by intent, and say which patterns were omitted and why.
- Test designs through seams: fakes, spies, contract tests and injected clocks.
Skills you'll gain
- Responsibility
- contracts
- Encapsulation
- composition
- Interfaces
- dependencies
- Creation patterns
- Behaviour patterns
- Structural patterns
- Testing designs
- Pattern trade-offs
Tools you'll use
- Java
- JUnit
- ArchUnit
Details to know
- Certificate on completionIssued after your final project is reviewed
- 8 module checkpointsA quiz and a practical task close each module
- Self-pacedStudy any time; your progress is saved
How every lesson works
Each lesson follows the same four steps, so you always know what comes next.
- 01
Watch & Learn
A short animated video explains one idea at a time.
- 02
Guided Practice
Work through an example step by step and check the result.
- 03
Quiz & Challenge
Short questions check the idea has landed before you move on.
- 04
Mini Project
Build something useful from a project brief.
Learn at your own pace
This is a self-paced course. There are no live classes and no fixed timetable.
- Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
- Pick up where you left offYour progress is saved to your account.
- Ask when you're stuckUse Ask Mentor inside the learning platform.
Your path in 5 phases
Each phase ends with something you have built and checked.
- 01
Modules 1 to 2
Cohort Desk domain core with contracts
Covers Responsibility and contracts and Encapsulation and composition.
You build: Guided project: CRC cards and a UML sketch with a decision sentence, passing the module 1 rubric.
- 02
Modules 3 to 4
Ports, injection and guarded dependency direction
Covers Interfaces and dependencies and Creation patterns.
You build: Guided project: Role interfaces owned by the core and constructor-injected collaborators.
- 03
Modules 5 to 6
Pattern kit applied to the capstone
Covers Behaviour patterns and Structural patterns.
You build: Guided project: Strategy plans, a listener-based Cohort and a tested enrolment state machine.
- 04
Module 7
Test suite and design review for the pattern-based design
Covers Testing designs.
You build: Guided project: Seam review table and ranked testability review In-memory fake and contract tests run on every implementation of the key interfaces.
- 05
Module 8
Final project and assessment
Covers Pattern trade-offs, then the final project: Refactored domain application using justified design patterns.
You build: Final project, one of: Cohort Desk: refactor the supplied tangled enrolment application (about 1,500 lines, authored during production) into a justified pattern-based design.
Full curriculum
8 modules and 46 lessons, 28 to 49 hours of study
01Responsibility and contracts7 lessons, 3 to 5 hours
Lessons
- Running supplied JUnit suites: from unittest to JUnit
- Domain nouns to classes with CRC cards
- Class invariants and constructor validation
- Method contracts: preconditions, postconditions and failure semantics
- Liskov substitution as a contract rule
- UML class sketches with pass conditions
- Immutability as a design tool: records and final fields
After this module you can
- Run a supplied JUnit suite for a small Java class, read a red and a green report, and map each unittest idea from the earlier course to its JUnit counterpart.
- Turn a short requirements paragraph into 4-6 candidate classes on CRC cards, each with one stated responsibility and named collaborators.
- Model a value concept as an immutable class or record, with validation in a compact constructor, and show that two equal values are interchangeable.
02Encapsulation and composition5 lessons, 2 to 4 hours
Lessons
- Information hiding and a minimal public surface
- The fragile base class: inheritance couples to internals
- Composition and delegation
- Replacing a hierarchy with composition under a passing suite
- Sealed hierarchies for closed domains
After this module you can
- Reduce a class's public surface to the methods callers need, keep representation private, and show that the representation can change without edits to callers.
- Predict and demonstrate how a subclass that overrides a method can break when the superclass changes how its own methods call each other.
- Declare a sealed interface with permitted records for a closed set of cases and write an exhaustive switch whose compile behaviour changes when a case is added.
03Interfaces and dependencies6 lessons, 3 to 4 hours
Lessons
- Role interfaces: designing the smallest useful contract
- Polymorphic dispatch: predicting which method runs
- Constructor injection: passing collaborators in
- Dependency inversion: who owns the interface
- Asserting dependency direction with ArchUnit
- Open-closed demonstration: add a requirement without editing
After this module you can
- Split a wide interface into role interfaces named by what a caller needs, and show each client compiles against only the role it uses.
- Predict which implementation runs for a call through an interface or superclass reference and explain the difference from overloading.
- Add a new pricing rule by writing a new class and one wiring line only, with the existing suite green before and after and no existing tested class edited.
04Creation patterns5 lessons, 2 to 4 hours
Lessons
- Static factory methods versus constructors
- Factory Method: letting a subclass or parameter choose the product
- Abstract Factory: families that must match
- Builder: constructing objects with many optional parts
- Singleton and its replacement by one injected instance
After this module you can
- Replace public constructors with named static factory methods where names, caching or validation help, and say when a plain constructor is better.
- Isolate the creation step of a product behind an overridable or injected method and show a new product type needs no edit to the algorithm that uses it.
- Show why a global singleton makes tests depend on shared state and replace it with a single instance created at the composition root and passed in.
05Behaviour patterns6 lessons, 3 to 4 hours
Lessons
- Strategy: interchangeable algorithms behind one interface
- Template Method: a fixed skeleton with variable steps
- Observer: publishing state changes to listeners
- Command: requests as objects with undo
- State: behaviour that depends on a lifecycle
- Iterator: traversal without exposing structure
After this module you can
- Extract a varying algorithm into a Strategy interface, inject it, and show a new algorithm needs no edit to the context class.
- Define an algorithm skeleton in a base class with final template method and overridable steps, and decide when composition (Strategy) should replace it.
- Implement Iterable and Iterator for a custom collection, honour the Iterator contract at the end of iteration, and use it in an enhanced for loop.
06Structural patterns5 lessons, 2 to 4 hours
Lessons
- Adapter: fitting a foreign API to your port
- Decorator: adding behaviour by wrapping
- Facade: one simple entry to a subsystem
- Composite: treating parts and wholes uniformly
- Proxy: a stand-in that controls access
After this module you can
- Write an adapter that implements your own interface by calling a third-party-shaped class, and keep the foreign types out of your core packages.
- Stack decorators that implement the same interface as the object they wrap, predict the effect of their order, and compare with java.io's wrapping streams.
- Implement a proxy that implements the same interface and adds access control or lazy loading, and state how it differs in intent from a decorator.
07Testing designs6 lessons, 3 to 4 hours
Lessons
- Reading a design for its seams
- Hand-written fakes for ports
- Verifying interactions in Observer and Command designs
- Contract tests for every implementation of an interface
- Injected time and randomness in designs
- A testability review of a pattern-based design
After this module you can
- Mark the seams in a class (injected interfaces) and the obstacles (new, static calls, hidden globals) and predict which behaviours can be tested in isolation.
- Write an in-memory fake that implements a port faithfully enough to run a use case end to end, and show a contract test passes against both fake and a second implementation.
- Review a small design for testability issues (hidden creation, static state, wide interfaces, tangled responsibilities) and propose three concrete changes ranked by cost and effect.
08Pattern trade-offs6 lessons, 3 to 4 hours
Lessons
- When a pattern is overkill: cost, benefit and the rule of three
- Anti-patterns: god object, speculative generality and pattern abuse
- Same shape, different intent: telling patterns apart
- Visitor versus sealed types and lambdas: patterns the language absorbs
- Evolving a design under a sequence of change requests
- Design review and decision records
After this module you can
- Decide for a given requirement whether a pattern pays for itself by comparing the cost of indirection with the change it enables, and justify leaving the simple code.
- Recognise a god object, speculative generality, anemic model and singleton overuse in code, and give one concrete corrective move for each.
- Write a design review for a pattern-based change with a decision record (context, options, decision, consequences) and review a peer's record against a rubric.
What you'll build
4 guided projects along the way, then a final project.
Cohort Desk domain core with contracts
after module 2Ports, injection and guarded dependency direction
after module 4Pattern kit applied to the capstone
after module 6Test suite and design review for the pattern-based design
after module 7
Final project
Refactored domain application using justified design patterns. Options: Cohort Desk: refactor the supplied tangled enrolment application (about 1,500 lines, authored during production) into a justified pattern-based design.
What you submit
Source submission: a repository with the refactored application, its supplied suite plus the learner's tests, and ArchUnit rules, with the commit history showing small steps Functional checks: the supplied behavioural suite passes before and after.
How it's reviewed
Trainer-reviewed demonstration, scored on: Behaviour preserved: supplied suite green before and after (pass/fail) Dependency direction: ArchUnit rules green and a seeded violation red (pass/fail).
Where you'll use it
- Replace a growing if-else block with a Strategy and keep the tests passing.
- Add an ArchUnit rule that stops domain code from depending on infrastructure.
Roles that use these skills
- Java Developer
- Software Engineer
- Software Architect
Earn the certificate by building, not watching
- Complete the lessons and pass each module checkpoint.
- Build your final project and demonstrate it.
- OUTLEARN reviews your project and issues your certificate. It is not issued automatically.
Frequently asked questions
What do I need before starting?
Completed the Java course (classes, interfaces, collections, exceptions) and Software Testing and TDD or accepted equivalence. the earlier course teaches testing in Python, so the first lesson is a bridge to JUnit; learners need only the ideas from the earlier course (arrange-act-assert, test doubles, test isolation) not Python itself.
When do I get a certificate?
We do not issue certificates until you successfully build and demonstrate your live project. Staff issue certificates after review; nothing is issued automatically.
Which languages is this course in?
Every lesson has audio and captions in English, Hindi, Telugu, Tamil, Kannada and Malayalam. You can switch language inside any lesson.
How do I report a problem in a lesson?
Email [email protected] with the course and lesson name. We read every report and correct the lesson.
Start Object-Oriented Design and Design Patterns today
Every lesson has audio and captions in English, Hindi, Telugu, Tamil, Kannada and Malayalam.
Start learning

