Object Oriented Programming Using C++: 1st Edition (Hardback) book cover

Object Oriented Programming Using C++

1st Edition

By B. Chandra

Narosa

417 pages

Purchasing Options:$ = USD
Hardback: 9780849324192
pub: 2002-05-22
SAVE ~$12.99
$64.95
$51.96
x

FREE Standard Shipping!

Description

Although C++ was developed as a superset of C language to include object oriented programming features, it can be used as a separate language. Many references require a prior knowledge of C for learning C++. Object Oriented Programming Using C++ however, provides the details of C++ required for both traditional programming and object oriented programming in such a lucid manner that the reader does not require any prior knowledge of C.

The result of the author's extensive experience in programming languages, database management systems, files structures, and research experience, this text provides a number of examples that illustrate important standard templates in C++ including vector, queue, stack, list map, and sets. It begins by addressing the fundamentals of C++; such as control statements, arrays, pointers, and structures and function. It then moves on to provide coverage on object oriented programming features of C++, discussions on implementation of data structures like linked lists, stacks, queues, binary trees using pointers, and classes. The book concludes with coverage on graphics in C++, string functions, operator loading, and advanced formatting features.

Table of Contents

FUNDAMENTALS OF C++

Introducing C++

Comments in C++

Data Types in C++

Unsigned Data Types

Variables in C++

Input Output Statements

Escape Sequences and Manipulators

Const Declaration

#define Directive

Arithmetic Expressions

Assignment Statements

Arithmetic Assignment Operators

Increment and Decrement Operators

Type Conversion

Boolean Expression

Operator Precedence

CONTROL STATEMENTS

If Statement

If…Else Statement

Unconditional Goto

Conditional Operator (?:)

For Loop

Do…While Loop

Exit() Function

Switch… Case Statement

Break Statement

Continue Statement

ARRAYS AND POINTERS

Arrays

Declaration of One Dimensional Arrays

Const Declaration for the Size of an Array

Sorting Procedures

Two Dimensional Arrays

Pointers

Pointer Variables

Pointer to Pointer

Address of Operator(&)

Indirection Operator(*)

New and Delete Operator

Zero Pointer

Pointer Arithmetic

Array of Pointers

Pointer Void

STRUCTURES

User Defined Data Types

Structures

Referencing a structure

The -> Operator

Array of Structures

Enumerated Data Type

FUNCTIONS IN C++

Functions

Void Functions

Functions with Return Values

Call by Value

Call by Reference

Recursive Function

Array as Argument in a Function

Structure as Argument in a Function

Overloaded Functions

Inline Function

Scope Resolution Operator

Data Storage Type

OBJECT ORIENTED PROGRAMMING

Introduction to Object Oriented Programming

Class

Types of Accesses

Difference between Structures and Classes

Using the Class

Accessing Members of a Class 106

Data Abstraction

Constructors

Destructors

Constructors with Arguments

INHERITANCE

Introduction to Inheritance

Public and Private Derivation

Overriding Base Class Members

SCOPE RESOLUTION OPERATOR

Role of Scope Resolution Operator

Protected Access Specifier

Invoking Constructors

Invoking Prototype Constructors

Initializing Constructors of the Base Class in the Derived Class

Invoking Prototype member functions

More about Destructors

INHERITANCE BEYOND SINGLE LEVEL

Inheritance Beyond Single Level

Introduction to Multiple Inheritance

Container Classes

VIRTUAL FUNCTIONS

Pointer to a Class

Virtual Functions

Abstract Class

Pure Virtual Functions

Copy Constructor

Virtual Base Class

This Pointer

FRIEND FUNCTIONS

Declaration of Friend Function

Friend Class

FILES AND STREAMS

Stream Classes

Opening and Closing Files

Open Mode bits

Character input and output

String Input

Integer Input and Output

File of Arrays

File of Structures

File of Objects

Ate mode

Nocreate Mode

Noreplace Mode

File Pointers

DATA STRUCTURES USING C++

Linked Lists

Doubly Linked Lists

Stacks

Queues

Linear Queue

Circular Queue

Tree

Binary Tree

TURBO GRAPHICS

Text Windows

Text Mode Graphics Functions

Graphics Mode

Viewport Related Commands

Special Graphics Functions

Turbo C++ Graphics Text Functions

Functions Used in Animation

STRING FUNCTIONS AND OPERATOR OVERLOADING

Strings

String Functions

Operator Overloading

Implementation of Operator Overloading

ADVANCED FORMATTING FEATURES

Formatting Functions

STANDARD TEMPLATE LIBRARY

Containers

Vector

Iterators

Stack

List

Deque

Queue

Algorithms

Maps

Sets

EXCEPTION HANDLING IN C++

Introduction to Exception Handling

Different Types of Exceptions

Throwing Exception from a Function

Catch()

APPENDIX

INDEX

Subject Categories

BISAC Subject Codes/Headings:
COM000000
COMPUTERS / General
COM051010
COMPUTERS / Programming Languages / General