Solved

Suppose the Unary ! Operator Is an Overloaded Member Function

Question 25

Multiple Choice

Suppose the unary ! operator is an overloaded member function of class String. For a String object s, which function call is generated by the compiler when it finds the expression !s?


A) s.operator!()
B) s.operator!(default_value1, default_value2,…)
C) operator!(s)
D) A compiler error results because no arguments are given.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions