"""
Author : Jake Shugart

Date : 5/3/2024

Purpose : This module defines the Car class that takes the year and make 
of a car. Initially we assign 0 to the car then we create methods for 
accelerate that adds 5 mph and brake that subtracts 5 mph. Lastly we create a 
get speed method to return the current speed of the car.

"""


class Car: #purpose of a car class is to define data type for car. It tells us what a car is.
    def __init__(self, year, make): #initialized method defines attributes for a car or maps out attributes for car class. 
        self.__year = year #assigns car year value
        self.__make = make #assigns car make value
        self.__speed = 0 #assigns car current speed value
    
    #A method named accelerate that adds 5 to the __speed data attribute each time it is called    
    def __accelerate__(self):
        self.__speed += 5
        
    #A method named brake that subtracts 5 from the __speed data attribute each time it is called
    def __brake__(self):
        self.__speed -= 5

     #A method named get_speed that returns the current speed
    def __get_speed__(self):
        return self.__speed
        
        
    
        


