Lab 1 Inheritance Lab Exercises

In this lab we'll look at some of the basics of inheritance in Java. The lab also serves as a means of beginning to learn how to use the Eclipse IDE. Many students find their initial exposure to Eclipse to be a bit daunting--Eclipse is a professional code development environment, so there's a lot there! A simple tutorial on using Eclipse can be found at http://agile.csc.ncsu.edu/SEMaterials/tutorials/eclipse/eclipse_tutorial_3.3.html. When reading the tutorial, you might want to skip down to item 6, "Creating a Java Project". At item 6.3, do not click on "Create separate source and output folders". For a simple project like this, it is much easier to keep the .class and .java files in the same directory.

You might want to review this short movie showing how to create a Java project in Eclipse, add a class and run it.

Make sure you maintain the names of the files and classes provided in this assignment.

Lab Document/Report

Most of the labs will require you to submit a text document (Microsoft Word is fine for this) that I will refer to as the "lab report", or "lab document". This will serve as a place for you to answer questions that are posed in the lab assignment. Make sure the lab document is clearly labelled with your name and the name of the lab (e.g., "Lab 1, Inheritance"). As you place text and images into the lab file, make sure you identify which question you are responding to. For example, "Step 3".

Submitting the Lab

To submit the lab, you will have to submit code, as well as the lab report. The easiest way to do that is to zip (compress) your project directory and submit the resulting .zip file to the dropbox associated with the assignment. You can copy your lab report into the project directory, so that it is included in the zip file.

This short movie will show you how to prepare a project for submission, including how to "zip" it.

Topics Lab Exercises
Inheritance

Exploring Inheritance