Professional Documents
Culture Documents
CheatSheet Python 4 Classes 1
CheatSheet Python 4 Classes 1
Description Example
Classes A class encapsulates data and functionality - data as class Dog:
attributes, and functionality as methods. It is a blueprint """ Blueprint of a dog """
to create concrete instances in the memory.
# class variable shared by all instances
species = ["canis lupus"]