
3.18 Chapter Summary 159
CHAPTER SUMMARY
3.18 Chapter Summary
■
Object-oriented programming entails writing programs that use
classes and objects. Using prewritten classes shortens development
time and creates more reliable programs. Programs that use
prewritten classes are called clients of the class.
■
Benefits of object-oriented programming include encapsulation,
reusability, and reliability.
■
Classes consist of data, plus instructions that operate on that data.
Objects of a class are created using the class as a template. Creating
an object is called instantiating an object, and the object is an
instance of the class. The new keyword is used to instantiate ...