You are given a Jets class and required to create a new class for very light private jets named VLJs which inherits from

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

You are given a Jets class and required to create a new class for very light private jets named VLJs which inherits from

Post by answerhappygod »

You are given a Jets class and required to create a new classfor very light private jets named VLJs which inherits from theparent class Jets. Under this new class, define 4 methods regardingengine, seat, tail and speed. Make sure the new class has its owninitialization method (constructor or __init__) which takes onlyone parameter: self and overrides name and origin attributes to"VLJs" and "South Africa" always as those don't change for an VLJsprivate jets.Add 3 more attributes: engine, seat, tail which are all having avalue 2 by default. Print the values of these attributes as theoutput of the program. The output should be printed in one line as:“2 2 South Africa” using 3 different print statements.
class Jets:model = Nonecountry = 0def __init__(self, name, country):self.type = "Jet"self.area = "Air"self.name = nameself.origin = country
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply