Book description
The book follows the approach of introducing a concept followed by providing an example and then brings out the intricacies of the topic by asking questions based on the example provided. Further, it exploits both teaching and industrial experience of the author and provides various complexities that arise in the real programming scenario.
Table of contents
-
C++ Programming
- Copyright
- Dedication (1/2)
- Dedication (2/2)
- Foreword
- Preface
- About the Author
- Chapter 1: WELCOME TO C++
-
Chapter 2: CLASS (STRUCTURE++*)
- 2.1 Introduction
- 2.2 Journey from C Structure Towards C++ Class
- 2.3 Developing First C++ Class (1/2)
- 2.3 Developing First C++ Class (2/2)
- 2.4 More About Class and Object
- 2.5 C++ Structure/C Structure and Class
- 2.6 Array of Objects
- 2.7 Class: Interface and Implementation
- 2.8 Guess the Output (1/2)
- 2.8 Guess the Output (2/2)
- 2.9 Points to Remember
- 2.10 Deep Knowledge Section
- Exercises (1/2)
- Exercises (2/2)
-
Chapter 3: CLASS FEATURES
- 3.1 Introduction
- 3.2 Constructor
- 3.3 Getter/Setter Methods
- 3.4 const Data Member
- 3.5 const Member Function
- 3.6 Static Class Members and Static Member Functions
- 3.7 More About Constructor (1/2)
- 3.7 More About Constructor (2/2)
- 3.8 Class with Pointer Attribute
- 3.9 Destructor
- 3.10 Copy Constructor
- 3.11 this Pointer
- 3.12 Assignment Operator
- 3.13 Friend Function and Friend Class (1/2)
- 3.13 Friend Function and Friend Class (2/2)
- 3.14 namespace (1/2)
- 3.14 namespace (2/2)
- 3.15 Guess the Output (1/2)
- 3.15 Guess the Output (2/2)
- 3.16 Points to Remember
- 3.17 Deep Knowledge Section (1/2)
- 3.17 Deep Knowledge Section (2/2)
- Exercises (1/2)
- Exercises (2/2)
-
Chapter 4: OPERATOR OVERLOADING
- 4.1 Introduction
- 4.2 Operator Overloading (1/2)
- 4.2 Operator Overloading (2/2)
- 4.3 Operator Overloading and Polymorphism
- 4.4 operator Function as Non-member Function
- 4.5 Overloading Increment and Decrement Operators
- 4.6 More About new Keyword
- 4.7 Automatic/Implicit Conversions (1/2)
- 4.7 Automatic/Implicit Conversions (2/2)
- 4.8 Guess the Output
- 4.9 Points to Remember
- 4.10 Deep Knowledge Section
- Exercises
-
Chapter 5: INHERITANCE
- 5.1 Introduction
- 5.2 Inheritance: What, When and Why?
- 5.3 Public Inheritance (1/2)
- 5.3 Public Inheritance (2/2)
- 5.4 Protected Access Specifier (1/2)
- 5.4 Protected Access Specifier (2/2)
- 5.5 Private Inheritance
- 5.6 Protected Inheritance
- 5.7 Composition
- 5.8 Virtual Inheritance: Solution to Diamond Problem (1/3)
- 5.8 Virtual Inheritance: Solution to Diamond Problem (2/3)
- 5.8 Virtual Inheritance: Solution to Diamond Problem (3/3)
- 5.9 Inheritance or Composition?
- 5.10 Composition and Aggregation
- 5.11 Advantages/Disadvantages of Inheritance
- 5.12 Guess the Output (1/2)
- 5.12 Guess the Output (2/2)
- 5.13 Points to Remember
- 5.14 Deep Knowledge Section
- Exercises (1/2)
- Exercises (2/2)
- Chapter 6: DYNAMIC POLYMORPHISM
- Chapter 7: GENERIC PROGRAMMING: TEMPLATES
-
Chapter 8: EXCEPTION HANDLING: SHOW MUST GO ON!
- 8.1 Introduction
- 8.2 Exception Handling: What, When and Why?
- 8.3 Exception Handling (1/2)
- 8.3 Exception Handling (2/2)
- 8.4 Exception Handling: Constructor (1/2)
- 8.4 Exception Handling: Constructor (2/2)
- 8.5 Exception Handling: Inheritance Class Hierarchy
- 8.6 Exception Handling: Destructor
- 8.7 bad_exception, set_unexpected, set_terminate
- 8.8 Guess the Output (1/3)
- 8.8 Guess the Output (2/3)
- 8.8 Guess the Output (3/3)
- 8.9 Points to Remember
- 8.10 Deep Knowledge Section
- Exercises (1/2)
- Exercises (2/2)
- Chapter 9: INPUT/OUTPUT
- Chapter 10: FILE INPUT/OUTPUT
- Chapter 11: LAST WICKET!
- Index
Product information
- Title: C++ Programming: A Practical Approach
- Author(s):
- Release date: September 2011
- Publisher(s): Pearson India
- ISBN: 9788131760529
You might also like
video
C++ Programming By Example
C++ is a flexible and generic language that offers a wide range of benefits with key …
book
Practical C++ Metaprogramming
To say that C++ programmers embrace metaprogramming is a real stretch. Outright rejection is probably more …
book
C++: A Dialog Programming with the C++ Standard Library
Simply the best way for beginners to learn standard C++. C++: A Dialog is the easiest, …
book
Advanced C++ Programming Cookbook
A recipe-based guide to refining your C++ programming skills with the help of coding best practices, …