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?
Escuela, estudio y materia
- Institución
- Cs 302
- Grado
- Cs 302
Información del documento
- Subido en
- 5 de diciembre de 2025
- Número de páginas
- 7
- Escrito en
- 2025/2026
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
cs302 midterm pratice questions and answers
Documento también disponible en un lote