Course contentsShow
Java
Lesson 452 of 2,87011. Polymorphism and Dynamic DispatchPro lesson

The Boilerplate Problem: Test-Cast-Use Pattern

Identify the repetitive code pattern of testing type, casting, then accessing members—the motivation for pattern matching.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.