ACtE03 · Chapter 3Programming & Applications🏛️ Past Licensure QuestionID: f41f72e3
A standard C++ operator that is redefined to perform custom operations on user-defined types (classes/structures) is called an:
A standard C++ operator that is redefined to perform custom operations on user-defined types (classes/structures) is called an:
Multiple Choice Options
- A✓ Correct Option
Overloaded operator
- B
Encapsulated operator
- C
Aggregated operator
- D
Inherited operator
Detailed Technical Solution & Explanation
Redefining standard C++ operators to assign them meaning when applied to objects of user-defined classes is called operator overloading.
Option Analysis:
•
Option A (Overloaded operator): Correct. Established OOP concept and C++ keyword.
•
Option B (Encapsulated operator): Encapsulation hides data, does not redefine operators.
•
Option C (Aggregated operator): Non-existent term.
•
Option D (Inherited operator): Operators can be inherited, but defining new behavior is overloading.
Reference: Mock Test 01NEC Licensure Syllabus