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

  State why you feel this is a strong goals-based plan

Include the following: objectives, the operations needed to achieve those objectives, action steps to take such as sales forecasting, tools and technology used, etc.

  Explain there are three steps in the writing process

Explain There are three steps in the writing process and How could MyFoundationsLab® help you achieve better overall writing?

  Describe the event and the purpose of the picture

Look at your company's Instagram page and find a picture(s) that represent an upcoming or past event being marketed on their page.

  Discuss business level strategies

Analyze the five business-level strategies discussed to determine which strategy the company you researched most likely applies

  Benefits of the family medical leave act

What are the benefits of the Family Medical Leave Act (FMLA) of 1993? How do these benefits relate to other types of employment leaves? Might the provisions of the act be abused? Explain why or why not. How might employers prevent abuses? Plea..

  How does one compute binary numbers

How does one compute Binary Numbers Like if I wanted to to find the values for 8 bit binary number how would I convert it decimal dot notation?

  Represent a sample of top us executives

Do higher-paid chief executive officers (CEOs) control bigger companies? Let us study x = annual CEO salary ($ millions) and y = annual company revenue ($ billions). The following data are based on information from Forbes magazine and represent a ..

  Part of corporate culture and consumer life

What changes do one foresee in business strategy as technology evolves in such a manner that it becomes both a part of corporate culture and consumer life?

  Matrices summarize the payoffs in the game

Each player's action set is {B;C}. The following matrices summarize the payoffs inthe game. The left-most matrix assumes player 3 plays B, the right-most matrix that she plays C. In each matrix, player 1 is the row player, and player 2 is the colu..

  Organization for economic cooperation and development

The Organization for Economic Cooperation and Development (OECD) Convention is an unusual international agreement in that it seeks

  University of nebraska at omaha

There is a collection of videos that were produced at University of Nebraska at Omaha regarding the "stories" of selected public administrators. (These are not stories in the sense of what you will write in this course.) They are more like intervi..

  How would you describe the contemporary state of business

How would you describe the contemporary state of business ethics?

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