Question
Easy

In C++, which of the following operator cannot be overloaded ?

1
^
2
==
3
. [dot]
4
!
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Object-Oriented Programming (C++)
Topic: OOP Concepts
Correct Answer
Option C
Explanation

The correct option is (3): The operator that cannot be overloaded in C++ is the member selection operator, denoted by the dot symbol (.). This rule is in place to preserve the fundamental integrity and built-in meaning of C++'s object model and syntax. The dot operator is crucial for accessing the actual members (variables or functions) of a class object, and allowing its behavior to be modified could lead to…Read More