Page 1 of 1

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

Posted: Fri Jul 08, 2022 6:37 am
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 areall having a value 2 by default. Print the values of theseattributes as the output of the program. The output should beprinted in one line as: “2 2 South Africa” using 3 different printstatements. class Jets: model = None country = 0 def __init__(self,name, country): self.type = "Jet" self.area = "Air" self.name =name self.origin = country