BINGO
Ginni Rometty
Ginni Rometty
Objects and If Statements
Review of Variables
Object
Object
type = “Bird”name = “Birdy the Bird”color = “red”numChildren = 0canFly = true
var animal
Changing the Object
numChildren = 0 1
var animalWhat if the bird had a child? Then numChildren would be 1 instead of 0.
Changing the Object
Updating numChildren to be one
Written in code
If Statement
If Statement
else
If Statement
( )
else
If Statement
( ) {
} else
If Statement
( ) {
} else {
}
If Statement
( ) {
} else
}
https://tinyurl.com/
summer-not-in-Ithaca
Day 3 Projects!AnimationsIf/Else
Objects