Discussion :: OOPS Concepts - General Questions (Q.No.37)
|Shivam said: (May 6, 2012)|
|We can easily change the meaning of an operator in C++ but don't do so because its not desireable.|
|Sekhar said: (May 30, 2012)|
|Some of the operators not possible to overload ex: #, ##
We cannot change the meaning of the opeator, we can define behavior
|Alok Kumar said: (Jul 27, 2012)|
|Only we can increase the function of operator not change the basic meaning of operator.|
|Ankit Dubey said: (Sep 4, 2012)|
|But we can change the basic meaning of the operator which to be overloaded.|
|Amit Kumar Singh said: (Sep 20, 2012)|
|We can't change the basic meaning of an operator which to be overloaded.|
|Yogesh Soni said: (Oct 14, 2012)|
|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.
|Parvesh said: (Oct 20, 2012)|
|1)All the operators can not be overloaded such as(::,.,# etc.)
2)Basic meaning is not changeable of any operator.
3)But same operator can exhibit different behavior.
|Mayur Fadadalia said: (Nov 7, 2012)|
|We can easily change the behavior of operator in c++.|
|Harsh Vardhan Verma said: (Jan 2, 2013)|
|We can not change the behavior of the operator example the operators / * + - , follow the BODMAS rules with their default priorities.|
|Chandu said: (Mar 26, 2013)|
|Some operators like sizeof, . , :?, ::, * are cannot be overloaded and we cannot change the basic functionality of an operator.|
|Rajashekhar P I said: (Jul 16, 2013)|
|We can change meaning of an operator like ++ can be overloaded to decrement contents of matrix by 1. This is not preferred way of doing things, but its nothing like we cannot do it.|
|Andrei said: (Feb 8, 2014)|
|The basic meaning remains the same. We can only add functionality, if after we decide to use the operator in the normal way it was intended by C++, it will work just fine.|
|Shivam Thaman said: (Feb 26, 2015)|
|Only existing operators can be overloaded & we cannot change the meaning of an existing operator. These are the core rules of operator overloading thing.|
|Sandip Shelke said: (Mar 4, 2015)|
|Some of the operator can not be overloaded such as ?, :, ::.|
|Bharat said: (Sep 17, 2015)|
|I think we can change the meaning of any operator. Can't we?|
|Naren said: (Oct 25, 2015)|
|We can't change the meaning of operator but C++ has facility of giving special meaning to operator without changing its existing meaning.|
|Prashant said: (Sep 5, 2017)|
there are some operator we can not overload like :: scope resolution
condition operator => ? :
dot operator=> .
pointer to member selectionoperator= > " -> "
And all cast operator.
|Pravin said: (May 29, 2019)|
|We can change the meaning of an operator in operator overloading. But we can't change its function.
Hence option C is correct.
|Will said: (Jul 9, 2021)|
|Yes, we can change basic meaning by operator overloading.|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.