Create a vehicles class that holds instances of cars

Assignment Help Business Management
Reference no: EM132238569

Create a Vehicles class that holds instances of cars; this class is completely separate from the Car class. In other words, the Car class does not inherit from the Vehicle class. Then assign three car instances to an instance of the Vehicle class.Create MERCEDES CLASS, BMW class, and ferrari class , all inheritance of car class

starter code below:

class Vehicle :

car=()

def __init__(self,car):

self.car=car

class Car:

wheels =4

def __init__(car,make,colour):

self.make=make

self.colour=colour

def description (self):

return f('{} is a {} {}.')

class Suv(car):

def __init__(self):

super ().__init__(make ,colour)

 

 

class Sedan (car):

def__init__(self,)

super ().__init__()

class Supercar (car):

def __init__(self)

super ().__init__()

# create instances of cars

my_cars=()

# instantiate the Vehicle class

mycars=vehicles ()

Your output should look like this:

I have 3 cars:

The Mercedes is a black suv.

The BMW is a silver sedan.

The ferrari is a red supercar .

and they all have 4 wheels of course.

Reference no: EM132238569

Questions Cloud

What value exists in the article for a future manager : Relationship to course. How does this article relate to the knowledge within this course? How does it relate to the textbook
Discuss the characteristics of a charismatic leader : Discuss the characteristics of a charismatic and transformational leader. How are they both similar and different?
Consider the concept of marketing product to the affluent : Consider the concept of marketing product to the affluent.
What steps could be taken to build staff confidence : What advice would you give Laura on improving her leadership skills and to the managers on improving their management skills?
Create a vehicles class that holds instances of cars : Create a Vehicles class that holds instances of cars; this class is completely separate from the Car class. In other words, the Car class
Develop criteria to assist in selecting the vendor to use : Imagine you are a new employee in a human resource (HR) department. Your first task is to develop a stress management seminar for the employees.
True of transfer of leased property by landlords : Which of the following is true of a transfer of leased property by landlords? Which of the following statements is true of insurance?
Describe the technical or logical controls managers : Describe the technical or logical controls managers would implement to detect when suspicious activity occurs on a network and report this to administrators.
Analyses of health trends and social determinants of health : Provide a brief narrative analysis of your conclusions. Were trends evident? Why or why not? Are these data sufficient to draw a conclusion

Reviews

Write a Review

Business Management Questions & Answers

  Employee negative responses - organizational development1

employee negative responses - organizational development1. besides new operating procedures what other planned or

  Based on agency relationships and tort actions

Professor said: Due to Black Friday sales there have been employee deaths at Walmart. Back in 2008, there was a worker that was stomped on to death and Walmart settled with the family for $400,000. Questions- Based on agency relationships and tor..

  What would we expect to happen to the price of good 1

Consumer incomes and the prices of all other goods remain the same. What would we expect to happen to the price of good 1?

  Define the best crop to plant according to the decision

Explain A farmer in Holland must decide which crop to plant next season and define the best crop to plant according to the following decision criteria.

  What went well with the meal

What went well with the meal? What were some difficulties or challenges with the meal?

  Identify the likely prospects for your product or service

BMGT 485 7380 and MRKT 475 7980- Identify the likely prospects for your product or service. Determine what information you should obtain about the prospect. Describe how you would approach the prospect.

  Civil service and interviewing techniques

From the case study "Didn't Cut It? Hire Another", state your analysis of the following and justify your response.

  What intentional and unintentional respondent errors are

Indicate what are specific intentional and unintentional respondent errors are likely with each of the given surveys.

  How does the is lm model develop

How does the IS LM model develop? How does the interest insensitivities affect the slope of LM curve?

  Sort of behavior recorded here is more prevalent

According to some experts, the sort of behavior recorded here is more prevalent in the business world than in the rest of society.

  Eight steps in the personal selling process

Explain and describe the eight steps in the personal selling process. prospecting, preapproach, approach, need assessment, presentation, meeting objective

  Characteristics of a health care leaderbeing an effective

characteristics of a health care leaderbeing an effective leadermanager is essential if a health care organization is

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd