Concept Flow - Intersection types
Define Interfaces
Create Class implementing both
Use Intersection Type in Function
Pass Object to Function
Function accepts only if object matches ALL types
Intersection types require a value to satisfy multiple type constraints at once, like an object implementing all specified interfaces.
