From the course: Java Design Patterns: Behavioral Part 1

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Behavioral design patterns

Behavioral design patterns - Java Tutorial

From the course: Java Design Patterns: Behavioral Part 1

Start my 1-month free trial

Behavioral design patterns

- [Instructor] Behavioral design patterns are about how objects assign responsibilities between each other. They're concerned with how objects are connected, how they communicate with each other, and how responsibilities are assigned between them. There are two different types of behavioral design pattern, class patterns and objects patterns. You can think of the difference between class patterns and object patterns as the difference between is a and has a relationships. For example, a dog is an animal and a dog has a tail. Class patterns are concerned with the is a relationships and object patterns are concerned with the has a relationships. Behavioral class patterns are concerned with how classes share responsibilities between themselves. This is usually done with inheritance. Behavioral object patterns are the most common type. These are about how different objects interact with each other. Sometimes they are a way to…

Contents