Object-Oriented Programming (OOP)
The following statement describes a specific concept. What is it called? a relationship between two separate classes that establishes a connection through their objects.
Difficulty: Medium
About this MCQ
This Medium Object-Oriented Programming (OOP) MCQ checks one syllabus fact.
The question is: “The following statement describes a specific concept. What is it called? a relationship between two separate classes that establishes a connection through their objects.”
The accepted answer is B. Association. Association refers to a relationship between two separate classes that establishes a connection through their objects.
- A. Static member
Why not A: “Static member” is not correct. The accepted answer is B. Association. Association refers to a relationship between two separate classes that establishes a connection through their objects.
- B. Association ✓
- C. Instance variable
Why not C: “Instance variable” is not correct. The accepted answer is B. Association. Association refers to a relationship between two separate classes that establishes a connection through their objects.
- D. Composition
Why not D: “Composition” is not correct. The accepted answer is B. Association. Association refers to a relationship between two separate classes that establishes a connection through their objects.
Correct answer
B. Association
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?