Chapter Six. A Few Words on Classes

BEFORE CONTINUING WITH THE SPECIFICS OF SAM'S DESIGN, we look at object-oriented design in general. We review the class maxims of cohesion and coupling, along with the three laws of objects. Polymorphic behavior is demonstrated with both inheritance and interfaces. We examine reuse of implementation explicit naming.

Get Prefactoring now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.