Beispiel #1
0
from electric_car import Car, ElectricCar

my_beetle = Car('volkswagen', 'beetle', 2019)

print(my_beetle.get_descriptive_name())
my_tesla = ElectricCar('tesla', 'roadster', 2019)
print(my_tesla.get_descriptive_name())

from car import Car

from electric_car import ElectricCar

my_beetle = Car('volkswagen', 'beetle', 2019)

print(my_beetle.get_descriptive_name())
my_tesla = ElectricCar('tesla', 'roadster', 2019)
print(my_tesla.get_descriptive_name())

import electric_car

my_beetle = electric_car.Car('volkswagen', 'beetle', 2019)
print(my_beetle.get_descriptive_name())

my_tesla = electric_car.ElectricCar('tesla', 'roadster', 2019)
print(my_tesla.get_descriptive_name())
from electric_car import Car, ElectricCar

my_beetle = Car('volkswagen','beetle',2019)
my_beetle.get_descriptive_name()

my_tesla = ElectricCar('tesla','roadster',2019)
my_tesla.get_descriptive_name()

# my_battery = Battery()
from electric_car import Car, ElectricCar

my_beetle = Car("volkswagen", "beetle", 2016)
print(my_beetle.get_descriptive_name())

my_tesla = ElectricCar("tesla", "roadster", 2016)
print(my_tesla.get_descriptive_name())

# import electric_car
#
# my_beetle = electric_car.Car("volkswagen", "beetle", 2016)
# print(my_beetle.get_descriptive_name())
#
# my_tesla = electric_car.ElectricCar("tesla", "roadster", 2016)
# print(my_tesla.get_descriptive_name())