Question: Python please, simple program nothing fancy. Please show screenshots of code with indents and running. Topics: class, method, object instantiation, inheritance, print Problem Statement In
Topics: class, method, object instantiation, inheritance, print Problem Statement In this assignment, you will design one child class MountainBke of a parent class Bicyele. The purpose of this lab is to gain experience in python's basic inheritance Class Definition: Data type Gear number includes 1 float Method geat, speed Initialize the instance applyBrake Decrease the speed by speedUp Increase the speed by increment variable Attribute name/Instance variables Data type Description float float in mile per hour ht of the seat in cm string Returns the curent information setneight You need to create two objects 'm1 and "m of "MountainBke class. Sample code has been provided in the template file Sample output No of gear: Current speed 10 Current seat height 100 Current seat height No of gear: 2 Current speed: 5 Current seat height 76
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
