Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 7

339 bytes removed, 11:47, 3 December 2017
INVESTIGATION 1: Classes and objects
Note that the function1() call does not modify the global '''authorName''' variable but function2() does.
== Object/Instance Scope == Every object can have variables that exist for that object only. You create and access those variables with the '''self.''' notation. Note that these are not '''class''' variables. Each object has its own set of '''instance''' variables. You will have seen that when you created objects in the Classes and Objects section above.
= LAB 7 SIGN-OFF (SHOW INSTRUCTOR) =