Unit 5: Writing Classes Flashcards Preview

AP CS-Applications > Unit 5: Writing Classes > Flashcards

Flashcards in Unit 5: Writing Classes Deck (4)
Loading flashcards...
1

What are the "big three"?

1. The instance variables
2. Accessor and Mutator methods
3. A toString method

2

What differentiates private and public variables?

A private variable can only be directly accessed from within the class. A public variable can be accessed from outside the class.

3

Accessor methods

an instance method that gets the value of a property of an object

4

Mutator methods

an instance method that sets the value of a property of an object