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...

In Page Break Preview, manual page breaks are indicated by ________ lines

A) dashed blue B) solid red C) solid blue D) dashed red

Computer Science & Information Technology

The _______ Microsoft tool is used to check for hardware and software compatibility problems before Windows is installed

Fill in the blank(s) with correct word

Computer Science & Information Technology