Developers: Learn a New Programming Language or App Development with Deitel LiveLessons Videos!
Login  |  Register  |  Media Kit  |  Press  |  Contact Us  |   Twitter Become a Deitel Fan on Facebook  
Custom Search
AddThis Social Bookmark Button

Table of Contents (Page 4): C++ How to Program, 5/e
12.1 Introduction
12.2 Base Classes and Derived Classes
12.3 protected Members
12.4 Relationship between Base Classes and Derived Classes
12.4.1 Creating and Using a CommissionEmployee Class
12.4.2 Creating a BasePlusCommissionEmployee Class Without
Using Inheritance
12.4.3 Creating a CommissionEmployee-BasePlusCommissionEmployee Inheritance Hierarchy
12.4.4 CommissionEmployee-BasePlusCommissionEmployee Inheritance Hierarchy Using protected Data
12.4.5 CommissionEmployee-BasePlusCommissionEmployee Inheritance Hierarchy Using private Data
12.5 Constructors and Destructors in Derived Classes
12.6 public, protected and private Inheritance
12.7 Software Engineering with Inheritance
12.8 Wrap-Up
13 Object-Oriented Programming: Polymorphism
13.1 Introduction
13.2 Polymorphism Examples
13.3 Relationships Among Objects in an Inheritance Hierarchy
13.3.1 Invoking Base-Class Functions from Derived-Class Objects
13.3.2 Aiming Derived-Class Pointers at Base-Class Objects
13.3.3 Derived-Class Member-Function Calls via Base-Class Pointers
13.3.4 Virtual Functions
13.3.5 Summary of the Allowed Assignments Between Base-Class
and Derived-Class Objects and Pointers
13.4 Type Fields and switch Statements
13.5 Abstract Classes and Pure virtual Functions
13.6 Case Study: Payroll System Using Polymorphism
13.6.1 Creating Abstract Base Class Employee
13.6.2 Creating Concrete Derived Class SalariedEmployee
13.6.3 Creating Concrete Derived Class HourlyEmployee
13.6.4 Creating Concrete Derived Class CommissionEmployee
13.6.5 Creating Indirect Concrete Derived Class
13.6.6 Demonstrating Polymorphic Processing
13.7 (Optional) Polymorphism, Virtual Functions and Dynamic Binding
"Under the Hood"
13.8 Case Study: Payroll System Using Polymorphism and Run-Time Type Information with Downcasting, dynamic_cast, typeid and type_info
13.9 Virtual Destructors
13.10 (Optional) Software Engineering Case Study: Incorporating Inheritance
into the ATM System
13.11 Wrap-Up
14 Templates
14.1 Introduction
14.2 Function Templates
14.3 Overloading Function Templates
14.4 Class Templates
14.5 Nontype Parameters and Default Types for Class Templates
14.6 Notes on Templates and Inheritance
14.7 Notes on Templates and Friends
14.8 Notes on Templates and static Members
14.9 Wrap-Up
15 Stream Input/Output
15.1 Introduction
15.2 Streams
15.2.1 Classic Streams vs. Standard Streams
15.2.2 iostream Library Header Files
15.2.3 Stream Input/Output Classes and Objects
15.3 Stream Output
15.3.1 Output of char * Variables
15.3.2 Character Output using Member Function put
15.4 Stream Input
15.4.1 get and getline Member Functions
15.4.2 istream Member Functions peek, putback and ignore
15.4.3 Type-Safe I/O
15.5 Unformatted I/O using read, write and gcount
15.6 Introduction to Stream Manipulators
15.6.1 Integral Stream Base: dec, oct, hex and setbase
15.6.2 Floating-Point Precision (precision, setprecision)
15.6.3 Field Width (width, setw)
15.6.4 User-Defined Output Stream Manipulators
15.7 Stream Format States and Stream Manipulators
15.7.1 Trailing Zeros and Decimal Points (showpoint)
15.7.2 Justification (left, right and internal)
15.7.3 Padding (fill, setfill)
15.7.4 Integral Stream Base (dec, oct, hex, showbase)
15.7.5 Floating-Point Numbers; Scientific and Fixed Notation
(scientific, fixed)
15.7.6 Uppercase/Lowercase Control (uppercase)
15.7.7 Specifying Boolean Format (boolalpha)
15.7.8 Setting and Resetting the Format State via Member
Function flags
15.8 Stream Error States
15.9 Tying an Output Stream to an Input Stream
15.10 Wrap-Up
Page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

Safari Trial Subscriptuon

Java How to Program, 7/e Cover

ISBN: 0131857576
© 2005, pp. 1520

Order now at

Download Code
Examples and
Other Premium
Content for
Registered Users

Login or Register to download this book's code examples and other premium content.

Update :: October 23, 2019