Classes and Objects
A class is a blueprint for creating objects that bundle data and behavior together.
Pythonshares state with other Python blocks
Key pieces
__init__is the constructor, it runs automatically whenever you create a new instance withStudent(...).selfrefers to the specific instance a method was called on, it's always the first parameter of an instance method.- Each instance (
ada,grace) keeps its own independent copy of the data set in__init__.