The rules for using operator [] are different from other operators. Which of the following statements are correct? Explain.

a) Operator [] may be overloaded only as a static member function.
b) The index may not be a char.
c) When writing an overloading function for operator [], the [] follows the keyword
operator, followed by one index parameter declaration between parentheses.
d) The index value must be an integer type.
e) The index may not be an enum.


a) Operator [] may be overloaded only as a static member function.
c) When writing an overloading function for operator [], the [] follows the keyword
operator, followed by one index parameter declaration between parentheses

Computer Science & Information Technology

You might also like to view...

Rehashing can be used in

a. linear probing b. quadratic probing c. separate chaining d. all of the above e. none of (a), (b), and (c)

Computer Science & Information Technology

Using a smartcard and a one-time passcode is an example of which of the following authentication methods?

A) Single-factor authentication B) Multifactor authentication C) Multilayer authentication D) Cognitive password authentication

Computer Science & Information Technology

A snap line that is colored _______________ indicates that the text within an object is aligned with the text in another object.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

When you point to an image in the Clip Art pane, a ScreenTip displays the creator of the image.

a. true b. false

Computer Science & Information Technology