Suppose that the class declaration of SomeClass includes the-03623
Suppose that the class declaration of SomeClass includes the following function prototype.<br>bool LessThan( SomeClass anotherObject ); <br><br>Which of the following tests in the client code correctly compares two class objects alpha and beta?
This multiple choice question (MCQ) is related to the book/course vu cs301 Data Structures. It can also be found in vu cs301 Mid Term - Quiz No.11.
Suppose that the class declaration of SomeClass includes the following function prototype.
bool LessThan( SomeClass anotherObject );
Which of the following tests in the client code correctly compares two class objects alpha and beta?
bool LessThan( SomeClass anotherObject );
Which of the following tests in the client code correctly compares two class objects alpha and beta?
if (alpha < beta)
if (alpha.LessThan(beta))
if (LessThan(alpha, beta))
if (LessThan(alpha).beta)