< Previous | Contents | Next >

D

dangling pointers, 241, 250251,

301, 325

data members, 87, 110

accessing, 259260

container, 291292

declaring, 258

heap and, 303315

declaring and defining copy constructors, 309313

declaring and defining destructors, 308309

declaring data members that point to values on heap, 307308

Heap Data Member program, 303307

overloading assignment operator, 313315

object, 290291

Deck class, BlackJack, 357, 360,

370373

Deck m_Deck member, BlackJack

Game class, 360 declaring

constructors, 262263

copy constructors, 309313

data members, 258, 307308

destructors, 308309

functions, 153, 183

iterators, 125126

member functions, 258

multidimensional arrays, 105

pointers, 226227, 249

references, 189

static data members, 272 static member functions, 273 variables, 1920, 165

vectors, 119120

deep copy, 310, 326 default arguments, 171174, 184

assigning to parameters, 173174

Give Me a Number program, 171172

overriding, 174

specifying, 173

default assignment operator, 313, 326

default constructor, 262263, 284

default copy constructor, 309, 326

default destructor, 308

default keyword, 77

default statement, 51

defining

accessor member functions, 267268

constant member functions, 268269

constructors, 262263

copy constructors, 309313

destructors, 308309

enumerations, 3132

functions, 154

member functions, 258259, 282 new names for types, 23

new types, 255260 accessing data members,

259260

calling member functions, 260

declaring data members, 258 declaring member

functions, 258

defining member functions, 258259

instatiating objects, 259 Simple Critter program,

256257

static member functions, 273 variables inside switch

statements, 166

virtual destructors, 351352

delete operator, 300301, 325 deque STL container, 139 dereference operator (*), 128, 146,

230

dereferencing

iterators, 128

pointers, 228229, 249

derived classes, 379

from base classes, 335336 deriving from abstract classes,

355356

instantiating objects from, 336337

using access modifiers when deriving, 340

using base class pointers to objects, 350351

using overloaded assignment operators and copy constructors in, 346347

Designers Network Program, 6265

destructors, 326

base class, 379

declaring, 308309

defining, 308309

instantiating objects from derived class, 336

virtual, 347

when to make virtual, 381 Die Roller program, 6869 display() function

constant referencees and, 197 passing and returning arrays,

247248

displayBoard()function,

Tic-Tac-Toe game, 210211

do loops, 5658, 77

logical NOT operator, 66 overview, 5758

Play Again 2.0 program, 5657

dot operator, 230 double type, 18, 19tbl double-ended queue, 148

dynamic array, 116 dynamic memory

allocating, 296303

avoiding memory leaks, 301303

delete operator, 300301

Heap program, 297299

new operator, 299300 data members and heap,

303315

copy constructors, 309313

declaring, 307308

destructors, 308309 Heap Data Member

program, 303307 overloading assignment op-

erator, 313315