Chapter 9 Review Questions: 1, 2, 3, 5, 6, 7, 8, 9, 15, 16, 17, 18, 19 -) What does the C++ keyword class do? How is this different from struct? -) Design a class for ... -) Demonstrate the proper way to define a class. -) Variables describe an is-a relationship while classes internal variables describe a have-a relationship. Example - consider the following two code segments: //segment 1 int a; // a is an integer. //segment 2 class Date { public: //accessors mutators and other functions go here private: int month; int day; int year; }; //Date has-a day month and year. -) Demonstrate in code how to make a class. -) What is an accessor function? -) What is a mutator function? -) Why are accessor and mutator functions preferred when using classes? -) Why should data in a class be private? -) What is data encapsulation? -Why is it useful?