Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use python to do it. MyCar class Represents selected information about a car.+ Class variables Attributes of a car Instance variables Car owner name,

please use python to do it.

image text in transcribed

MyCar class Represents selected information about a car.+ Class variables Attributes of a car Instance variables Car owner name, Make, Model Constructor arw arguments:+ car owner name, make, model State change:- A new object of type Car is created. Values for the car's owner, make and model are assigned. (Instance variables)- Return: That newly created Car object. Methodsv setlnformation+ arguments:+ attributes - year, body style, color, vinnumber, cylinders, etc State change: (changes class variables) The class's variables are changedv Return: New values of class's variables (Clue: how can we use the class variables in setlnformation? Declare those as global.) DescribeCar No arguments.+ Return: All information about the car including class and instance variables* Example calls: + Altina-car ("vinay'', '' nissan", "altina") Altima setInformation ("2007", "red", "dsd2324424244") print (Altima. DescribeCar)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

Describe the flow of costs through a job costing system.

Answered: 1 week ago