CSCE 121 Chapter Notes - Chapter 10: Abstract Data Type, Member Variable, In C

201 views9 pages

Document Summary

True/false: a class is an example of a structured data type. Ref: 630: in c++, class is a reserved word and it defines only a data type. Ref: 631: if the heading of a member function of a class ends with the word const, then the function member cannot modify the private member variables, but it can modify the public member variables. Pts: 1: in c++ terminology, a class object is the same as a class instance. Ref: 634: given the declaration class myclass public: void print(); //output the value of x; The following statement is legal. myobject. x = 10; Pts: 1: if an object is declared in the definition of a member function of the class, then the object can access both the public and private members of the class. Pts: 1: if an object is created in a user program, then the object can access both the public and private members of the class.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents