Chapter 2. Classes and Objects: The Building Blocks of the Object-Oriented Paradigm
Introduction to Classes and Objects
The object-oriented paradigm uses the concepts of class and object as basic building blocks in the formation of a consistent model for the analysis, design, and implementation of applications. These concepts can best be explained through a real-world example. Given a room full of people, if you were to ask, “How many people in this room could build an alarm clock if given all the pieces?” at best one or two individuals would raise their hand. If the same room of people were asked, “How many people in this room could set an alarm clock to go off at 9 a.m.?” it is a safe bet that most people would raise their hand. Isn't it absurd ...
Get Object-Oriented Design Heuristics 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.