Hogwarts School Of Computer Science
From Huben's Wiki
Line 67: | Line 67: | ||
} | } | ||
</pre> | </pre> | ||
+ | |||
+ | * What do you notice about the braces and the words of this incantation? | ||
+ | |||
+ | Braces delimit '''blocks'''. A block is a series of statements, and statements are easy to spot because they usually are one per line and end with a semicolon. | ||
+ | |||
+ | * How many blocks are there in this incantation? | ||
+ | * How many statements are there in this incantation? | ||
+ | * Guess how many statements can be in a block: smallest number and largest number. | ||
+ | |||
+ | This incantation is called a '''class''' because it has the magic word '''class''' in it. Muggles call thes magic words '''reserved words'''. |