Object Oriented Programming 2023
OBJECT ORIENTED PROGRAMMING 2023 2. If class Course is composed in class Faculty, which statement is INCORRECT description of the relationship? A. Class Course is exclusively owned by class Faculty. B. Object of class Course is created inside class Faculty. C. Class Faculty has “is a” relationship with class Course. D. When an object from class Faculty is destroyed, objects from class Course is destroyed too. 3. When a class contains an instance of another class, it is known as ________________. A. Inheritance. B. Polymorphism. C. Composition. D. Overriding. 4. Which statement are TRUE regarding aggregation relationship among classes? i. A special form of association which represents an ownership relationship between two classes. ii. The UML class diagram uses a filled/ solid diamond be attached the ends of association lines. iii. It is usually represented as a data field in the aggregated class. iv. It models the “has a” relationship. A. i and ii C. i, ii and iv B. i and iv D. i, iii and iv
Document information
- Uploaded on
- July 28, 2023
- Number of pages
- 21
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Only questions