Classes and Overloading Operators Lab 3

Classes and Overloading Operators Lab 3 - You can use a...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Classes and Overloading Operators LAB # 3 By Daniel Fore CSE 1384 Intermediate Computer Programming Lab Section # 6 Tamer Aldwairi February 12, 2008
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Test Cases: Enter a value for hours: 01 Enter a value for minutes: 12 Enter a value for seconds: 57 The current time is 01:12:57 01:12:58 01:12:59 01:13:00 01:13:01 01:13:02 Press any key to continue . . . Analysis Questions: 1. What is an advantage of overloading << instead of just using the print() method?
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: You can use a single operator to manipulate your classes 2. Now that &lt; and == are implemented, is &gt; automatically implemented? No, you have to implement each operator you wish to use 3. What are two other operators that you think would be useful in the Clock class? New and Delete Appendix A: Source Code:...
View Full Document

This note was uploaded on 09/15/2009 for the course CSE 1284 taught by Professor Henderson,lisa during the Fall '07 term at Mississippi State.

Page1 / 3

Classes and Overloading Operators Lab 3 - You can use a...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online