#Author: James Tam #Version: June 10, 2024 #Learning: # *A program with multiple classes # *Defining a str method class Vehicle: def __init__(self): self.make = "no make specified" self.model = "no model specified" self.mileage = -1 #Returns the current state of the object #Automatically called when object/reference is passed to print def __str__(self): objectState = "" objectState = objectState + "Make: " +self.make objectState = objectState + "\tModel: " +self.model objectState = objectState + "\tMileage: " +str(self.mileage) return(objectState) car = Vehicle() car.make = "Eagle" car.mileage = 123 print(car)