Object-Oriented Programming in Python
Inside the class
Each class contains two kinds of information:
An attribute is data that describes the object (like the length of the tail, the number of legs, hair color, etc.).
A method is something that an object can do. Methods can change or not change the attributes(cat can eat and its weight increases or cat can sleep, and nothing happens).
An object is one of the possible representations of the class. Creating a new class object is called instantiating a new object.
Here we create a
Here we create a unique
cat object based on our