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

1. A local class and a nested class are the same thing.

2. Overloading a binary operator as a stand-alone function requires two arguments.

1. False
Explanation: A local class has its definition in a block, whereas a nested class has its definition within another class.
2. True
Explanation: Consider a use of the operator _:
leftAObject + rightAObject;
This translates to
operator+(rightAObject, leftAObject);
requiring two arguments.

Computer Science & Information Technology

You might also like to view...

The part of the Print Preview window that indicates the page displayed and the total number of pages is the ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which type of content control displays items from which to choose?

A) Drop-Down List B) Option Button C) Check Box D) Plain Text

Computer Science & Information Technology