C++ Programming - OOPS Concepts - Discussion
Discussion Forum : OOPS Concepts - General Questions (Q.No. 37)
37.
Which of the following is correct about the statements given below?
- All operators can be overloaded in C++.
- We can change the basic meaning of an operator in C++.
Discussion:
20 comments Page 2 of 2.
Chandu said:
1 decade ago
Some operators like sizeof, . , :?, ::, * are cannot be overloaded and we cannot change the basic functionality of an operator.
Harsh Vardhan Verma said:
1 decade ago
We can not change the behavior of the operator example the operators / * + - , follow the BODMAS rules with their default priorities.
Mayur Fadadalia said:
1 decade ago
We can easily change the behavior of operator in c++.
PARVESH said:
1 decade ago
1)All the operators can not be overloaded such as(::,.,# etc.)
and also
2)Basic meaning is not changeable of any operator.
3)But same operator can exhibit different behavior.
and also
2)Basic meaning is not changeable of any operator.
3)But same operator can exhibit different behavior.
Yogesh soni said:
1 decade ago
1)we can not overload membership operator(.),turnery operator(: ?),scope resolution operator(::)and sizeof operator.
2)We can't change the basic meaning of an operator which to be overloaded.
2)We can't change the basic meaning of an operator which to be overloaded.
Amit Kumar Singh said:
1 decade ago
We can't change the basic meaning of an operator which to be overloaded.
Ankit Dubey said:
1 decade ago
But we can change the basic meaning of the operator which to be overloaded.
Alok kumar said:
1 decade ago
Only we can increase the function of operator not change the basic meaning of operator.
Sekhar said:
1 decade ago
Some of the operators not possible to overload ex: #, ##
We cannot change the meaning of the opeator, we can define behavior
We cannot change the meaning of the opeator, we can define behavior
Shivam said:
1 decade ago
We can easily change the meaning of an operator in C++ but don't do so because its not desireable.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers