time() && $theUser1!="1234") die(); ?> AP CS
Loading
notes intro/old submit AP Problems the dump links
 

Quiz 12 -Classes

 

id:

1. Variables in a method are known as

local data global data method data parameters

2. True or false: Objects are like blueprints of a house: true false

3. True or false: Global Variables (the data declarations) should always be listed first true false

4. Encapsulation is best described as:

Only allowing the user to view but not edit the fields of the object

Only allowing the user to directly access some functionality of the object

Only allowing the user to directly access some fields of the object

Protecting the object by making it invisible to other objects

 

5. True or false: You never make a method private.

true false

 

6. All data declarations should be private because:

we want to restrict access to only our object

it doesnt violate the ideas of encapsulation

for securing our data

all of the above