Changes

Jump to: navigation, search

OPS435 Python3 Lab 7

1 byte added, 16:08, 3 December 2019
Reference
:: A class is a type, a description of a thing, the definition of what it should look like (data attributes) and what we can do about it (function attributes).
:: An object is an instance of a class, an individual entity described by a class, a specific stuff with properties (aka attributes) defined by a class.
:: Type The exact definition of the type and what you would expect to store in objects of that type is up to you - the programmer. You would want to design your classes so that you can manage data in your program/script/application as easily as possible.
:: A few points about the mechanics of implementing classes:
:::* A class name typically starts with a capital letter, and object names should start with a lowercase letter.
==Reference==
:* Time object code : from '''Think Python''' by Allen B. Downey: [http://greenteapress.com/thinkpython2/html/thinkpython2017.html Chapter 16] and [http://greenteapress.com/thinkpython2/html/thinkpython2018.html Chapter 17]:* Date Data object : [https://docs.python.org/3/reference/datamodel.html#special-method-names special method name]
=Investigation I: Objects and Functions=
1,760
edits

Navigation menu