Solved

Suppose the Unary ! Operator Is an Overloaded Member Function

Question 13

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents