(CPP) C++ Programming Professional Certificate Practice Test
CPP Operator Overloading & Type Conversions 2
What is the correct member function signature for overloading the less-than operator for class T?
Select your answer
A
bool operator<(T other)
B
bool operator<(const T& other) const
C
T operator<(const T& other)
D
bool operator<(T& other)
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49
🃏 Study This Quiz as Flashcards →