From the course: Java Design Patterns: Behavioral Part 1
Unlock the full course today
Join today to access over 23,400 courses taught by industry experts.
Behavioral design patterns - Java Tutorial
From the course: Java Design Patterns: Behavioral Part 1
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.