Quiz #7 study guide

Quiz #7 Study Guide
Download Document
Showing pages : 1 - 3 of 6
This preview has blurred sections. Sign up to view the full version! View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Object Oriented Programming Practice Questions CSE 100, Fall 2007 Arizona State University True/False Indicate whether the statement is true or false. ____ 1. In C++, class is a reserved word and it defines only a data type. ____ 2. The member variables of a class must be of the same type. ____ 3. The member functions of a class must be public . ____ 4. In a class, all function members are public and all member variables are private . ____ 5. A class and its members can be described graphically using Unified Modeling Language (UML) notation. ____ 6. Given the declaration class myClass { public: void print(); //Output the value of x; MyClass(); private: int x; }; myClass myObject; The following statement is legal. myObject.x = 10; ____ 7. Given the declaration class myClass { public: void print(); //Output the value of x; MyClass(); private: int x; }; myClass myObject; The following statement is legal. myObject.print = 10; ____ 8. The public members of a class must be declared before the private members. ____ 9. The constructor with no parameters is called the default constructor. Multiple Choice Identify the choice that best completes the statement or answers the question....
View Full Document