Slide 14-1 Chapter 4 (a) Defining Classes Slide 2 4-2 The Contents of a Class Definition A class definition specifies the data items and methods that all of its objects will…