Ms Gold
Lesson 13b for week of 11/17
Introduction to Object Oriented Programming
Lesson Plan 13b -Alice or Graphics
Mass Framework:
Standard 1:
Standard 2:
Standard from Technology/Engineering Standards for a Full First-Year Course in Grades 9 or 10
Learning Objective:
Learning Experience:
In Alice, variables can exist in at least two different locations in a program:
* Inside a method or function. (local variable)
* Inside an object but outside of a method or function. (instance variable
or property)
One of the primary differences between the two different locations has to do with the lifetime of the variable.
In Alice, variables that belong to objects are called properties. They come into existence when the object is created, and they cease to exist when the object ceases to exist. As a practical matter, objects cannot be created or destroyed in Alice while a program is running, so properties belonging to an object exist during the entire running time of the program.
Just like local variables, every property is identified as belonging to a specific type.
By Dec 18th ALL Chapter 3 programming problems MUST be completed
http://www.dickbaldwin.com/tocalice.htm 135 -180