human
I am working on the file "Session_10/10_OOPython.ipynb".
The first task is:
Exercise
Create a class for a car and create a constructor (__init__) that sets the make, model and engine size.
Add some class variables that are general across all cars.
Create methods to get information about each instance.
Create static methods to do things with the car that would be common across all cars.
This is barely the surface to OO programming. You cover this in detail in the next semester.
Extra Credit - Overriding
When we create a class, we are given built in Python methods to run on it already (such as: print, add, multiply, type etc)
We can override these methods in order to do our own thing when we call it.
Prove it? Use on of your classes from earlier and print it. What is it printing? We can make that more detailed:
Can you write Python program for it?
 Give me a Python program to print it?
assistant
#Here is Python program to print it.

class Bella:
    def __init__(self): #here is the constructor being overridden
        pass
    def __str__(self): #called when we call `print` on an object
        return "I want you, and I want you forever. One lifetime is simply not enough for me."
    
b = Bella()
print(b)