Skip to Content
Object-Oriented Design Heuristics
book

Object-Oriented Design Heuristics

by Arthur J. Riel
April 1996
Intermediate to advanced
400 pages
9h 31m
English
Addison-Wesley Professional
Content preview from Object-Oriented Design Heuristics

Appendix A. Heuristics Summary

Chapter 2 Classes and Objects: The Building Blocks of the Object-Oriented Paradigm

Heuristic 2.1All data should be hidden within its class.

Heuristic 2.2Users of a class must be dependent on its public interface, but a class should not be dependent on its users.

Heuristic 2.3Minimize the number of messages in the protocol of a class.

Heuristic 2.4Implement a minimal public interface that all classes understand [e.g., operations such as copy (deep versus shallow), equality testing, pretty printing, parsing from an ASCII description, etc.].

Heuristic 2.5Do not put implementation details such as common-code private functions into the public interface of a class.

Heuristic 2.6Do not clutter the public interface ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Design Patterns Explained: A New Perspective on Object-Oriented Design, Second Edition

Design Patterns Explained: A New Perspective on Object-Oriented Design, Second Edition

Alan Shalloway, James R. Trott
API Design Patterns

API Design Patterns

John J. Geewax
Refactoring to Patterns

Refactoring to Patterns

Joshua Kerievsky

Publisher Resources

ISBN: 020163385XPurchase book