Object-Oriented Programming (OOP)
Select the accurate description of Association.
Difficulty: Medium
About this MCQ
This Medium Object-Oriented Programming (OOP) MCQ checks one syllabus fact.
The question is: “Select the accurate description of Association.”
The accepted answer is C. A relationship between two separate classes that establishes a connection through their objects.. Association refers to a relationship between two separate classes that establishes a connection through their objects.
- A. A class member that belongs to the class itself rather than to any individual object instance.
Why not A: “A class member that belongs to the class itself rather than to any individual object instance.” is not correct. The accepted answer is C. A relationship between two separate classes that establishes a connection through their objects.. Association refers to a relationship between two separate classes that establishes a connection through their objects.
- B. A keyword that controls the visibility and accessibility of a class's members, such as public or private.
Why not B: “A keyword that controls the visibility and accessibility of a class's members, such as public or private.” is not correct. The accepted answer is C. A relationship between two separate classes that establishes a connection through their objects.. Association refers to a relationship between two separate classes that establishes a connection through their objects.
- C. A relationship between two separate classes that establishes a connection through their objects. ✓
- D. A variable defined in a class for which each object of that class maintains its own separate copy.
Why not D: “A variable defined in a class for which each object of that class maintains its own separate copy.” is not correct. The accepted answer is C. A relationship between two separate classes that establishes a connection through their objects.. Association refers to a relationship between two separate classes that establishes a connection through their objects.
Correct answer
C. A relationship between two separate classes that establishes a connection through their objects.
Explanation
Association refers to a relationship between two separate classes that establishes a connection through their objects.
Source: Object-Oriented Programming (OOP) Official Reference Guide
Tags: computer science, oop, object-oriented programming, software design
Submitted by: MCQsHub Editorial
Related MCQs
- The concept in which a special method automatically invoked when an object is destroyed, used to release resou...
- Identify the correct definition of Destructor.
- What term describes the following? a class member that belongs to the class itself rather than to any individu...
- In computer science, Static member refers to which of the following?
- Select the correct name for: a keyword that controls the visibility and accessibility of a class's members, su...
- Which statement correctly explains Access modifier?