Classes allow us to define a new data type and allow us to organize our programs in a different way (Object Oriented Programming, a.k.a. OOP, a class is an object). An abstract data type has two parts: (1) attributes and (2) the operations that can be done on data of that type.
Chapter 11: Introduction to Classes
Section 9.6: Scope—The Full Story
class MyClass (object): def __init__ (self, parameters): suite-of-statements # initialize attributes def some_method (self, parameters): suite-of-statements
Unqualified names do not have a dot.
Scope rules for unqualified names:
Qualified names do not have a dot.
Scope rules for qualified names: