Explaining Objects and Properties
From Bold Idea Knowledgebase
This page is currently under construction. |
TO-DO: After moving from this from session 2, it's a bit disorganized. Need to organize it into something that looks more like an activity guide. |
- Ask the class to point to any object in the room
- Ask the class to explain the individual parts of the object and help them to realize that those parts are objects as well. Show them that objects exist within other objects.
-
Ask the class to describe the properties of an object
- Ex: Color, position in the room, height, width, weight, etc.
-
Ask the class to describe the methods of an object
- Ex: If describing the methods of a cup, you might say its primary method is to hold liquid
- Examples of objects that make up our avatar
-
Parts of an object
-
Properties
-
What is a property?
- Talk about real world things and their properties
- Ex. Car - number of doors, color, etc.
- CS Ex: x, y, z positioning properties
-
Ex:
avatar.position.x = 5
-
What is a property?
-
Methods
-
What is a method?
- Talk about real world things and their methods
-
Ex. Car's method would be
drive()
-
CS Ex.
add()
method -
Ex:
avatar.add(left_foot);
-
What is a method?
-
Properties
Talk about object properties and methods discussion in the context of a 3D avatar:
-
Have the class discuss what objects are needed to create an avatar.
- Ex: right arm, left arm, body, head, legs, etc.
-
Have the class discuss what they'd like to see their avatar do.
- Ex: walk, run, jump, etc.
- Ask the class to point to any object in the room
- Ask the class to explain the individual parts of the object and help them to realize that those parts are objects as well. Show them that objects exist within other objects.
-
Ask the class to describe the properties of an object
- Ex: Color, position in the room, height, width, weight, etc.
-
Ask the class to describe the methods of an object
- Ex: If describing the methods of a cup, you might say its primary method is to hold liquid
Object properties and methods discussion in the context of a 3D avatar
-
Have the class discuss what objects are needed to create an avatar.
- Ex: right arm, left arm, body, head, legs, etc.
-
Have the class discuss what they'd like to see their avatar do.
- Ex: walk, run, jump, etc.