OOP MIDTERM 1 ACTUAL 2025/2026 QUESTIONS AND 100% CORRECT ANSWERS
OOP MIDTERM 1 ACTUAL 2025/2026 QUESTIONS AND 100% CORRECT ANSWERS What is the difference between data and behavior? Give examples as to how this applies to code. - Answer -Data includes variables, attributes, fields, members, and state. Behavior is methods, instance methods, member methods, and messages. What relationship does a filled in diamond represent in UML? What does it mean? - Answer -Composition. "Has-a" relationship. In composition, the part class cannot exist independently of the whole class. A car has an engine, windshield, wheels, doors, seats, etc. The car owns the wheels and engine, and they have a shared
Written for
- Institution
- OOP
- Course
- OOP
Document information
- Uploaded on
- December 1, 2025
- Number of pages
- 10
- Written in
- 2025/2026
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
oop midterm 1 actual 2025
-
oop midterm 1 actual 2026
-
what is the difference between data and behavior