Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Java Design Patterns: Behavioral Part 2

via LinkedIn Learning

Overview

Learn how to improve your code using behavioral design patterns. This course covers the following design patterns: Observer, State, Strategy, Template Method, and Visitor.

Syllabus

Introduction
  • Improve code quality with behavioral design patterns
  • What you should know
1. The Observer Pattern
  • Understanding the Observer pattern
  • Implementing an observer
  • Implementing an observable
  • Challenge: The Observer pattern
  • Solution: The Observer pattern
2. The State Pattern
  • Understanding the State pattern
  • Avoiding large switch statements
  • Allowing an object to change its behavior
  • Challenge: The State pattern
  • Solution: The State pattern
3. The Strategy Pattern
  • Understanding the Strategy pattern
  • Implementing the Strategy pattern
  • Improving the Strategy pattern with Java 8 features
  • Challenge: The Strategy pattern
  • Solution: The Strategy pattern
4. The Template Method Pattern
  • Understanding the Template Method pattern
  • Implementing the Template Method pattern
  • Challenge: The Template Method pattern
  • Solution: The Template Method pattern
5. The Visitor Pattern
  • Understanding the Visitor pattern
  • Creating a visitor
  • Implementing the full Visitor pattern
  • Challenge: The Visitor pattern
  • Solution: The Visitor pattern
Conclusion
  • Next steps

Taught by

Bethan Palmer

Reviews

4.7 rating at LinkedIn Learning based on 63 ratings

Start your review of Java Design Patterns: Behavioral Part 2

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.