Answer the following statements true (T) or false (F)

1. Functions that are constant member functions may call the class mutator functions.
2. Functions that are constant member functions may call constant class accessor functions.
3. You cannot create new operators (such as the quote).
4. Operators must be friends of the class.
5. You may not change the precedence of operators by overloading them


1. FALSE
2. TRUE
3. TRUE
4. FALSE
5. TRUE

Computer Science & Information Technology

You might also like to view...

When an unchecked exception occurs in a method but is not caught, ________.

a. the method-call stack is “unwound.” b. the method terminates. c. all local variables in that method go out of scope. d. All of the above.

Computer Science & Information Technology

(Employee Class) Create a class called Employee that includes three pieces of information as data members—a first name (type string), a last name (type string) and a monthly salary (type int). [Note: In subsequent chapters, we’ll use numbers that contain decimal points (e.g., 2.75)— called floating-point values—to represent dollar amounts.] Your class should have a constructor that

initializes the three data members. Provide a set and a get function for each data member. If the monthly salary is not positive, set it to 0. Write a test program that demonstrates class Employee’s capabilities. Create two Employee objects and display each object’s yearly salary. Then give each Em- ployee a 10 percent raise and display each Employee’s yearly salary again. What will be an ideal response?

Computer Science & Information Technology

Names such as Merriwhether, also known as ________ names, are sometimes flagged as misspelled even though they are spelled correctly

Fill in the blank(s) with correct word

Computer Science & Information Technology

Critical Thinking Questions Case 8-2 ? An employee at PrattLast Associates created a form for the database and would like to make some changes using the FORM LAYOUT TOOLS ARRANGE tab. The employee needs to delete a row from a form. How should he accomplish this task? a. Click any control in the row to delete, click Select Column, press the ADJUST key to delete the row. b. Click any control in the row to delete, click Select Column, press the DELETE key to delete the row. c. Click any control in the row to delete, click Select Column, press the REMOVE key to delete the row. d. Click any control in the row to delete, click Select Column, press the ALTERNATE key to delete the row.

What will be an ideal response?

Computer Science & Information Technology