Quiz 2 Solution
- Terms and Concepts
(a) True or false
- T
- F
- F
- T
- F
- T
(b) Fill in the blank
- static
- constructor
- final
- visibility
(c) Short answer
public data members can be accessed outside the class
private data members can only be accessed within the class
- It preserves the integrity of the class (by ensuring that the variables
cannot be accessed - either looked at or modified - outside the class).
- Expressions
(a) -33
(b) 11.5
(c) -24.0
- Memory Diagram
Go over in class