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

Chapter 8. Class-Specific Data and Behavior

Introduction to Class-Specific Versus Object-Specific Data and Behavior

When teaching an object-oriented design course, I often ask the question, “Is an object required when you wish to send a message?” Invariably, the response is “Of course, messages are sent to objects.” Since the constructor of a class is one of its messages, how does one build the first object? It is clear that the constructor is a different sort of message. It does not require an object before it can be sent. (In the case of C++, the constructor is considered a normal message sent to an object that the standard allocator has created. For the purpose of this discussion, I consider my use of the term “constructor” to include standard ...

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