CSC207H1 Chapter Notes -Compile Time, Instance Variable
Document Summary
Submission (only one lab partner must do this): Purpose: the purpose of this lab is to get you familiar with inheritance. As you work through the tutorial, if you have questions about inheritance, please do ask the ta. Open up eclipse or any other ide that you wish to use for java. Create a new java project. In the java project add a new class called bicycle. The bicycle class must have three public instance variables of type int i. e. (cadence, gear, speed). It must have one public constructor that takes in three input int variables (startcadence, startspeed and startgear). Bicycle class also has five instance methods as follows: Before you start with part2, you must feel comfortable with what are instance methods and class methods. If you have concerns on this topic, please ask the ta. It must be in the same folder/package as your bicycle" class. Mountain bike must inherit from the.