Create a vehicles class that holds instances

Assignment Help Business Management
Reference no: EM132255367

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: EM132255367

Questions Cloud

Google image results for her search query : Joanie is investigating the general topic of social media activism, specifically on Twitter. She'd like to see whether she can find some images
A discussion about the potential impact of the results : Provide an in-depth discussion of the findings that could have resulted if you actually conducted your proposed study.
Identify common security threats and vulnerabilities : PLEASE TELL ME ABOUT Identify common security threats and vulnerabilities.
Risk analysis for pipes and tubes manufacturing industry : Please submit Risk analysis for Pipes and Tubes manufacturing industry
Create a vehicles class that holds instances : Create a Vehicles class that holds instances of cars; this class is completely separate from the Car class. In other words
Discuss the collection and handling of evidence : Describe the different types of evidence. Explain the role of evidence in criminal trial proceedings. Discuss the collection and handling of evidence.
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.
The baseline duration of the critical path of the project : Determine the baseline duration of the critical path of the project. Determine the variance that causes the week’s delay.
Even though it may mean he will lose the opportunity : Should he accept the internship and quit after 3 months, or should he be honest with the company even though it may mean he will lose the opportunity?

Reviews

Write a Review

Business Management Questions & Answers

  Information for those interested in jobs overseas

The web site provides valuable information for those interested in jobs overseas.

  What is the taxable equivalent for the municipal bond

Suppose an investor in with a 28% tax rate is considering buying a municipal bond with a yield of 2.22%.

  The economic feasibility of manufacturing a part

Managers at Wager Fabricating Company are reviewing the economic feasibility of manufacturing a part that it currently purchases for a supplier. Forecasted annual demand for the part is 3200 units. Wagner operates 250 days per year.

  What is hyperconverged infrastructure

What is Hyperconverged Infrastructure. What is the benefit of Hyperconverged Infrastructure

  Technological advancements in manufacturing

With so many technological advancements in manufacturing, machines now perform many tasks that used to be completed by workers.

  What do you see as your strengths and weaknesses

How might your personality type influence your job performance? Based on the results of your assessment, what do you see as your strengths and weaknesses?

  Question about organizational developmenthas organizational

question about organizational developmenthas organizational development become irrelevant over the past 20 years?

  Effective business strategies to achieve it strategies

Discuss what you think are the most important leadership characteristics on that list and in forming effective business strategies appropriate to achieve those IT strategies.

  Rapid economic development of poorer countries

Do you believe the rapid economic development of poorer countries helps or hurts the environment? Why?

  How would you repond to post

It's difficult to imagine what our workforce will look like in the year 2038, considering the leaps and bounds that have been made in the last 20 years

  Alternative name of cause and effect diagram

What is the alternative name of cause and effect diagram? how can it be used to understand the organizational problem causes?

  Determine how the organization should come to a decision

A small hospital in a well-managed healthcare system can consider three ways to obtain clinical support services: "stand alone" (hire its own healthcare professionals); "outsource" (buy services from local providers); and "affiliate" (arrange for ..

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