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

1. When overloading an operator, you can change the behavior of the operator, making + do things that feel like multiplication, but this is unwise.

2. When overloading an operator, you can create a new operator different from the more usual operators.


1. True
Explanation: This unwise mischief is one of the pitfalls of operator overloading.
2. False
Explanation: You are restricted to the operators provided. (C++ is large enough now, doing this would make it much too large.)

Computer Science & Information Technology

You might also like to view...

Describe the elements of an E-R diagram depicting the relationship between a person and a tee-shirt. This description should show the following relationship: Each person can have many tee-shirts, but each shirt can only be owned by a single person.

What will be an ideal response?

Computer Science & Information Technology

The Text Pane displays to the ________ of the SmartArt diagram

A) right B) top C) bottom D) left

Computer Science & Information Technology

You can add a user or group with administrative access to the RODC using the ___________ utility

a. server.exe b. dcpromo c. dccmd d. dsmgmt

Computer Science & Information Technology

Name various tools provided by Oracle9i DBMS.

The Oracle9i database management system consists of various tools: SQL*PlusĀ  PL/SQL Developer Suite Enterprise Manager Oracle Application Server (Oracle9iAS)

Computer Science & Information Technology