1 - Roswell High School Mr. Lee Teacher Website



Name___________________________________ APCS A (HW Ch4 – Vocabulary)

Please read pages 196-237. Complete the following vocabulary list. If you need an additional source,

check out a free online dictionary of computing at .

|1 |attributes | |

| | | |

|2 |behavior | |

| | | |

|3 |instance data | |

| | | |

|4 |self-governance | |

| | | |

|5 |encapsulation | |

| | | |

|6 |client program (driver) | |

| | | |

|7 |visibility modifier | |

| | | |

|8 |service methods (public) | |

|9 |support methods (private) | |

|10 |method declaration | |

| | | |

|11 |return statement | |

| | | |

|12 |parameter list in method header | |

|13 |formal parameters | |

| | | |

|14 |actual parameters | |

| | | |

|15 |precondition | |

| | | |

|16 |postcondition | |

| | | |

|17 |constructor | |

| | | |

|18 |default constructor | |

| | | |

|19 |local data | |

| | | |

|20 |accessor method | |

| | | |

|21 |mutator method | |

| | | |

|22 |method overloading | |

| | | |

|23 |method signature (header) | |

24. How is a constructor different from other type of methods in a class?

25. Both methods and variables in a class are declared as either private or public. Describe the difference between private and public and indicate how a programmer decides which parts of a class should be private and which public.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download