All relational operators are binary, and should return either true or false. Generally, all six operators can be based off a comparison function, or each other, although this is never done automatically (e.g. overloading > will not automatically overload < to give the opposite). 70-291 There are, however, some templates defined in the header
Tuesday, September 9, 2008
Microsoft MCSE Certification Exam 70-291
Another common use of 70-270 overloading the assignment operator is to declare the overload in the private part of the class and not define it. Thus any code which attempts to do an assignment will fail on two accounts, first by referencing a private member function and second fail to link by not having a 70-284 valid definition. This is done for classes where copying is to be prevented, and generally done with the addition of a privately declared copy constructor
All relational operators are binary, and should return either true or false. Generally, all six operators can be based off a comparison function, or each other, although this is never done automatically (e.g. overloading > will not automatically overload < to give the opposite). 70-291 There are, however, some templates defined in the header; if this header is included, then it suffices to just overload operator== and operator<, and the other operators will be provided by the STL.
All relational operators are binary, and should return either true or false. Generally, all six operators can be based off a comparison function, or each other, although this is never done automatically (e.g. overloading > will not automatically overload < to give the opposite). 70-291 There are, however, some templates defined in the header
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment