Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

C Books Guide and List
C++ Books Guide and List
Best Java Books

0 votes
asked by

1 Answer

0 votes
When an operator is overloaded, it takes on an additional meaning relative to a certain class. But it can still retain all of its old meanings.


1) The operators >> and << may be used for I/O operations because in the header, they are overloaded.

2) In a stack class it is possible to overload the + operator so that it appends the contents of one stack to the contents of another. But the + operator still retains its original meaning relative to other types of data.
answered by

Related questions

0 votes
1 answer 45 views
45 views asked by sara (24.6k points) 31 59 96
0 votes
2 answers 53 views
53 views asked by anonymous
+1 vote
1 answer 93 views
93 views asked by anonymous
0 votes
1 answer 8.2k views
0 votes
1 answer 46 views
46 views asked by john (27.1k points) 31 54 119