Which method added to class B at the marked spot will allow the code below to compile?

Which method added to class B at the marked spot will allow the code below to compile? Choose all possible solutions.


A. booloperator < (const B & v) const {return val<v.val;}
B. bool operator > (const B & v) const {return val<v.val;}
C. bool operator > (const B & v) const {return val>v.val;}
D. bool operator == (const B & v) const {return val==v.val;}
E. operator int () const {return val;}

Download Printable PDF. VALID exam to help you PASS.

Posted in: CPP

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.