This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Parameters -pass a parameter to the method o parameter lists specify what type of thing is passed name to use to refer to the value in the method o ie: public void drawSquare(int width); Subclasses -inherits the methods and field o Turtle class is a subclass of SimpleTurtle o public class Turtle extends SimpleTurtle Can add new variables and new methods -Classes can subclass another class in Java and Alice...
View Full Document
This note was uploaded on 02/28/2011 for the course CSCI 053 taught by Professor Sibert during the Fall '10 term at GWU.
- Fall '10