February 2014
Beginner
1248 pages
62h 25m
English
A left brace (as in line 5), {, begins the body of every class declaration. A corresponding right brace (at line 11), }, must end each class declaration. Lines 6–10 are indented.
Good Programming Practice 2.3
Indent the entire body of each class declaration one “level” between the left brace and the right brace that delimit the body of the class. This format emphasizes the class declaration’s structure and makes it easier to read. We use three spaces to form a level of indent—many programmers prefer two or four spaces. Whatever you choose, use it consistently.
Error-Prevention Tip 2.2
When you type an opening left brace, {, immediately ...
Read now
Unlock full access