Lab 10: Prelab Questions

Print a copy of this page and referring to the lab exercise, answer each of the questions on your copy. (You must turn in your answers at the beginning of your laboratory session.)


1. To prevent the data members of a class from being accessed directly by programs using the class, they are declared in the __________ section of a class.




2. The objects within a class that are used to store the attributes of a class object are called the __________ of the class.




3. The function members of a class provide a means by which the __________ on a class object can be performed.




4. A function member that automatically initializes a class object when that object is defined is called a class __________ function.




5. A class can grant a non-member function access to its private section by naming it as a __________ of the class.





Back to This Lab's Home Page

Forward to the Lab Exercise


Copyright 1998 by Joel C. Adams. All rights reserved.