Return to assignment description
Here is what your output should look like when you start:
Here are our people:
bob is Person: Bob
carol is Person: Carol
Press Enter...
Here is what your output may look like after you've added your Vehicle class
and activated "Part 1" of the code:
Here are our people:
bob is Person: Bob
carol is Person: Carol
Press Enter...
Here is our Vehicle:
Bob's 4-door Tata
Test Vehicle Make: FAIL
Test Vehicle Doors: FAIL
Test Vehicle Owner: FAIL
Test Vehicle Owner setter: FAIL
Press Enter...
Here is what your output may look like when you've activated Part 2:
Here are our people:
bob is Person: Bob
carol is Person: Carol
Press Enter...
Here is our Vehicle:
Bob's 4-door Tata
Test Vehicle Make: PASS
Test Vehicle Doors: PASS
Test Vehicle Owner: PASS
Test Vehicle Owner setter: PASS
Press Enter...
Here is our Truck:
Carol's 2-door BMC
Test Truck Make: FAIL
Test Truck Doors: FAIL
Test Truck Owner: FAIL
Test Truck Load Limit: FAIL
Test Truck Towing Limit: FAIL
Test Truck equals (same): PASS
Test Truck equals (diff.tow.cap.): FAIL
Test Truck equals (diff.load.cap.): FAIL
Test Truck equals (diff.own.): FAIL
Test Truck equals (diff.cyl.): FAIL
Test Truck equals (diff.make): FAIL
Test Truck equals (all diff.): FAIL
Test Truck equals (object argument): PASS
Test Person inheritance: PASS
Test Vehicle inheritance: PASS
Test Truck inheritance: PASS
Press Enter...
Here is what your output should look like when you're done:
Here are our people:
bob is Person: Bob
carol is Person: Carol
Press Enter...
Here is our Vehicle:
Bob's 4-door Tata
Test toString(): PASS
Test Vehicle Make: PASS
Test Vehicle Doors: PASS
Test Vehicle Owner: PASS
Test Vehicle Owner setter: PASS
Press Enter...
Here is our Truck:
Carol's 2-door BMC
Test toString(): PASS
Test Truck Make: PASS
Test Truck Doors: PASS
Test Truck Owner: PASS
Test Truck Load Limit: PASS
Test Truck Towing Limit: PASS
Test Truck equals (same): PASS
Test Truck equals (diff.tow.cap.): PASS
Test Truck equals (diff.load.cap.): PASS
Test Truck equals (diff.own.): PASS
Test Truck equals (diff.num.doors.): PASS
Test Truck equals (diff.make): PASS
Test Truck equals (all diff.): PASS
Test Person inheritance: PASS
Test Vehicle inheritance: PASS
Test Truck inheritance: PASS
Press Enter...
Test illegal number of doors: PASS
Test unowned Vehicle creation: PASS
Unowned toString(): PASS
Test illegal load-capactity: PASS
Test illegal tow-capactity: PASS
Test Truck equals (object argument): PASS
Test Truck equals (String argument): PASS
Press Enter...
Return to assignment description