[go: up one dir, main page]

0% found this document useful (0 votes)
15 views1 page

OOP and Operator Overloading Guide

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

OOP and Operator Overloading Guide

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

OOP

1002

objects, 16-18 binary operators, 117, limitations, 358


organization, 15 328-339 multiple overloading,
overloading, 22 conditional operator, 334
overview, 10, 13-15 111-114 operator keyword, 322
polymorphism, 21-22 contents of operator, 437 pointer-to-member
program development, 803 conversion operator, operator, 360
reusability, 21 347-348 polymorphism, 22
UML (Unified Modeling decrement operator, 65 return values, 323-325
Language), 23-24 delete operator, 461-462 scope resolution opera-
open() member function, dot operator, 136-137 tor, 360
596-597 dynamic cast operator, subscript [ ] operator,
opening files, 596-597 553-556 340-343
operator keyword, 322, extraction operator, 46-47, temporary objects,
861 569, 585, 616-620 325-326
operator=() function, increment operators, 63-65 unary operators,
534-535 indirection operator, 320-328
operators 437-438 parsing, 480
address-of & operator, insertion operator, 34, 47, pointer-to-member opera-
431-433 54, 569, 616-620 tor, 360
arithmetic operators, 60 logical operators polymorphism, 21-22
addition (+) operator, AND, 115-116 precedence, 47-48, 89-90,
60 bool variables, 114 118, 860
arithmetic assignment NOT, 116-117 put to (<<) operator, 34
operator, 61-63 OR, 116-117 reinterpret cast operator,
division (/) operator, 60 XOR, 116 591
modulus operator, 61 member access operator, relational operators
multiplication (*) oper- 136 equal to (==) operator,
ator, 60 new operator, 459-463, 77
remainder (%) opera- 465-466 greater than operator,
tor, 61 overloading, 320 77
subtraction (-) operator, arguments, 323 greater than or equal to
60 assignment operator, operator, 77
assignment operator, 533-536, 539-546, less than operator, 77
532-533 552-553 less than or equal to
arithmetic assignment binary operators, operator, 77
operator, 61-63 328-339 not equal to (!=) opera-
chaining, 535 conditional operator, tor, 77
inheritance, 536 360 uses, 76-78
overloading, 533-536, dot (.) operator, 360 scope resolution operator,
539-546 extraction operator, 236, 384
overloading and self- 616-620 subscript [ ] operator,
assignment, 552-553 guidelines for using, 340-343
prohibiting copying, 358-359 ternary operators, 117
539 insertion operator, typeid operator, 553,
associativity, 447-448 616-620 556-557
unary operators, 117,
320-328

You might also like