4

CLASSES AND OBJECTS

4.1 INTRODUCTION TO OBJECTS

We perceive the world around us through our senses. The senses recognize objects present around us. For instance, visible objects like human beings, buildings, cars, soil, earth, water, cloud, etc. are all perceived by eyes. The non-visible objects like air, sound, and smell are perceived through touch, ears, and nose respectively. Distant or abstract objects are generally perceived through spoken words of an expert. For instance, the structure of an atom or existence of BOSON, the God particle, can only be perceived through their description by experts. Thus, the world around us is composed of nothing but objects of varying descriptions as shown in Fig. 4.1.

Figure 4.1 Some of the objects ...

Get Object-Oriented Programming with C++ 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.