CSC207H1 Chapter Notes -Compile Time, Instance Variable

72 views5 pages
School
Course
Professor

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents