CS302 MIDTERM PRATICE questions and answers
CS302 MIDTERM PRATICE questions and answers What kind of relationships are available between class objects? Is-a (Hierarchical, derives common traits from a parent, i.e animal-dog), Has-a (Containing, like parts inside a engine), and Using-a (Association, the two classes are separate but work together to complete a task). What is the issue with "getters"? Breaks encapsulation, best to make it so that the class manages that data themselves instead of giving it to others. What does it mean for an object to change spontaneously?
Written for
- Institution
- Cs 302
- Course
- Cs 302
Document information
- Uploaded on
- December 5, 2025
- Number of pages
- 7
- Written in
- 2025/2026
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cs302 midterm pratice questions and answers
Also available in package deal