< Previous | Contents | Next >

O

object data members, 290–291 object file, 2

object-oriented programming. See

OOP

objects

See also string objects altering through returning

pointers, 243–244

defined, 283

instatiating, 259

overview, 87–89

OOP (object-oriented programming), 2, 255,

281, 283

inheritance, 331–333

polymorphism, 347

operator overloading, 92,

112–113, 295–296, 325

operator precedence, 389–390 operator() member function Blackjack game, 377–379

Game Lobby program, 323–324

operators. See specific operators

opponent()function, Tic-Tac-Toe game, 210

OR (||) operator, 61tbl, 66 order of operations

arithmetic operators, 15

logical operators, 67–68

outer loop, 86–87 out-of-scope

objects, 201, 241

variables, 164, 185 output operator (), 9 output stream, 8 overloading

assignment operator, 313–315

functions, 174–177

calling, 177

creating, 176

Triple program, 174–176

operators, 92, 112–113,

295–296, 325

versus overriding, 345

overriding

base class member functions, 379

default arguments, 174

non-virtual member function, 344, 351

Overriding Boss program, 341–343