Upcoming SlideShare
×

# Greenfoot presentation

1,260 views

Published on

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
1,260
On SlideShare
0
From Embeds
0
Number of Embeds
158
Actions
Shares
0
23
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Greenfoot presentation

1. 1. Greenfoot Teaching Classes and Objects:Inheritance and Method Overwriting Instances of Objects By: Ms. Leanne Warkentin
2. 2. The Details...Grade 10 (students should understand ifstatements and basic programming)Concept: Classes and Objects: Inheritance(including method overwriting) andInstancesLength: No more than a week, I think it ispossible to be done in 3-4 days 
3. 3. Why is this concept so difficult?Personal Experience:Variables (aka. Primitive Data Types) Objects
4. 4. So... Why use Greenfoot?1. Greenfoot lays out object orientation quite clearly2. Cleans up the ugly mess of creating graphics3. If you are teaching an object oriented language, Greenfoot makes the “object oriented” pretty! (and I’m all for pretty code!)
5. 5. How are these concepts usually taught? Shape Rectangle Ellipse r1 r2 e1 e2 10 5 18 5 20 3 30 3
6. 6. What about in Greenfoot? Object Overriding InheritanceHierarchy Methods
7. 7. What about in Greenfoot? Instance4 Instance3 Superclass: Actor Subclass: CrabInstance2 Instance1 of subclass crab
8. 8. Lesson Plan – The Learning StageThere is a great tutorial onhttp://www.greenfoot.org/doc/tut-1that lays out the learning portion.This could be used as:• take-home (flipped classroomdesign)• a lesson in class, with a walkthrough
9. 9. Here... Let me SHOW you!
10. 10. Lesson Plan – The Application (and more learning!) StageUse the program in “The LearningStage” to be a starting point tomaking your own game.3 Criteria of the Project 1. There must be at least 2 moving objects, and they must move in different ways 2. There must be one new method used from the Greenfoot API 3. There must be methods within the subclass of Actor other than act()
11. 11. Lesson Plan – The Assessment StageIdeas... Formative assessment through conversation1. Completed the tutorial and understand (any questions?)2. After completing their project: • Student must be able to explain and demonstrate that each of their ‘actors’ inherit all the functions of the superclass Actor • Student must be able to explain and demonstrate method overriding • Student must be able to explain and show what is happening when there is more than instance of a (sub)class (such as 2 crabs) • Must meet the 3 Criteria of the project
12. 12. Questions???Chuck Norris is the superclass of all classes in Java (including Object class)