Page1 / 6

Quiz #7 Study Guide - Object Oriented Programming Practice...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Quiz #7 Study Guide

Quiz #7 Study Guide - Object Oriented Programming Practice...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
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

Ask a homework question - tutors are online