Changes

Jump to: navigation, search

Rchan sandbox

1 byte added, 14:01, 2 November 2019
Investigation 1: Objects and Functions
:*Date object from '''OPS435 Assignment 1'''
=Investigation 1I: Objects and Functions=
== Part 1 - Simple Object Class with external functions ==
In this part, we consider a time object which has three data attributes, namely: hour, minute, and second. The following Python script '''lab7a.py''' provides the blue print for building such a time object and also define defines three external functions that can manipulate the time object.
<source lang="python">
#!/usr/bin/env python3
1,760
edits

Navigation menu