ACtE03 · Chapter 3Programming & Applications🏛️ Past Licensure QuestionID: 93b4cb19
A standard C++ operator (such as + or <<) that is given specialized behavior to operate on user-defined types (classes/structs) is called an:
A standard C++ operator (such as + or <<) that is given specialized behavior to operate on user-defined types (classes/structs) is called an:
Multiple Choice Options
- A✓ Correct Option
Overloaded operator
- B
Encapsulated operator
- C
Inherited operator
- D
Abstracted operator
Detailed Technical Solution & Explanation
Operator overloading allows standard C++ operators to be redefined with custom semantics for programmer-defined classes, using the operator keyword followed by the symbol.
Option Analysis:
•
Option A (Overloaded operator): Correct. Standard terminology in C++ for operator polymorphism.
•
Option B (Encapsulated operator): Encapsulation applies to class members, not operator definitions.
•
Option C (Inherited operator): Operators can be inherited, but redefining their behavior is overloading.
•
Option D (Abstracted operator): Non-standard term.
Reference: Mock Test 06NEC Licensure Syllabus