DEV Community

Discussion on: Inheritance over composition

Collapse
 
courier10pt profile image
Bob van Hoove

The most recent case where I was happily using inheritance was for a data transfer object (DTO) where a variety of messages were defined using a base message type. No behavior there, little chance to get confused.