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 lifespanNeed assistance on Online classes, Exams & Assignments? Reach out for instant help!! Full Course Assistance, Plagiarism-free Essay Writing, Research Paper, Dissertation, Discussion Posts, etc…. Confidential & Secure services. Tutors are available for all subjects! Email now at: What relationship does a white diamond represent in UML? What does it mean? - Answer -Aggregation. "Has-a" relationship. It denotes a stronger relationship where one class (the whole) contains or is composed of another class (the part). In this kind of relationship, the child class can exist independently of its parent class. What relationship does a dotted arrow represent in UML? What does it mean? - Answer -Dependency. One object "uses" another object. One class relies on another, but it's not as s
Written for
- Institution
- OOP
- Course
- OOP
Document information
- Uploaded on
- November 6, 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