Changes

Jump to: navigation, search

Rchan sandbox

26 bytes added, 13:11, 3 November 2019
Investigation II
:9. Before proceeding, make certain that you identify all errors in lab7a.py. When the checking script tells you everything is OK - proceed to the next step.
<br><br>
=Investigation II- Objects and Methods=
: In the previous investigation, the functions that were defined for manipulating our time object are not tied directly to our time object. Given our time object alone, we won't be able to tell that there exist a function called sum_times() which can be used to add two time objects and return their sum.
:<br>
: To tie up those functions to our time objects, we only need to move those functions definition under the class block which defines our Time object.
== Part 1 - Classes and Methods for our Time objects ==
1,760
edits

Navigation menu