Object-Oriented Programming with C++

Book description

Object-Oriented Programming (OOP) is a paradigm shift in programming, which defines, creates, and manipulates objects to develop reusable software. This book is designed to help students understand the concepts governing OOP and develop a talent in them to choose right the OOP tools for a given problem situation. Dealing at length with the creation and manipulation of OOP components using C++, Object-Oriented Programming with C++ uses examples that reflect current practices and standards to provide a hands-on experience to budding software engineers.

Table of contents

  1. Cover
  2. Title Page
  3. Preface
  4. About the Author
  5. 1. INTRODUCTION TO C++
    1. 1.1 Introduction
    2. 1.2 Characters Used in C++
    3. 1.3 Basic Data Types
    4. 1.4 C++ Tokens
    5. 1.5 Input–Output Statements
    6. 1.6 Structure of a C++ Program
    7. 1.7 Escape Sequence (Backslash Character Constants)
    8. 1.8 Operators and Expressions
    9. 1.9 Flow of Control
    10. 1.10 Arrays
    11. 1.11 Structures
    12. 1.12 Functions
    13. 1.13 I/O Functions
    14. 1.14 Strings
    15. 1.15 Summary
    16. Multiple Choice Questions
    17. Answers
    18. Exercises
    19. Answers
  6. 2. POINTERS
    1. 2.1 Introduction
    2. 2.2 Pointer Variables
    3. 2.3 Pointers and Arrays
    4. 2.4 Array of Pointers
    5. 2.5 Pointers and Structures
    6. 2.6 Dynamic Allocation
    7. 2.7 Summary
    8. Multiple Choice Questions
    9. Answers
    10. Exercises
    11. Answers
  7. 3. PROGRAMMING TECHNIQUES: A SURVEY
    1. 3.1 Introduction
    2. 3.2 Unstructured Programming
    3. 3.3 Structured Programming
    4. 3.4 Drawbacks of Structured Programming
    5. 3.5 Object-Oriented Programming
    6. 3.6 Summary
    7. Multiple Choice Questions
    8. Answers
    9. Exercises
  8. 4. CLASSES AND OBJECTS
    1. 4.1 Introduction to Objects
    2. 4.2 Classes
    3. 4.3 Declaration of Classes in C++
    4. 4.4 Creating Objects
    5. 4.5 Array of Objects
    6. 4.6 Objects as Function Arguments
    7. 4.7 Scope Resolution Operator
    8. 4.8 Static Data Members
    9. 4.9 Properties of Classes and Objects
    10. 4.10 Summary
    11. Multiple Choice Questions
    12. Answers
    13. Exercises
  9. 5. MORE ON FUNCTIONS: ADVANCED CONCEPTS
    1. 5.1 Polymorphism
    2. 5.2 Function Overloading
    3. 5.3 Inline Functions
    4. 5.4 Friend Functions
    5. 5.5 Friend Classes
    6. 5.6 Recursion
    7. 5.7 Summary
    8. Multiple Choice Questions
    9. Answers
    10. Exercises
    11. Answers
  10. 6. CONSTRUCTORS AND DESTRUCTORS
    1. 6.1 Constructors
    2. 6.2 Types of Constructors
    3. 6.3 Destructors
    4. 6.4 Summary
    5. Multiple Choice Questions
    6. Answers
    7. Exercises
  11. 7. INHERITANCE: EXTENDING CLASSES
    1. 7.1 Introduction to Code Reuse
    2. 7.2 Containership
    3. 7.3 Inheritance
    4. 7.4 Types of Inheritance
    5. 7.5 Function Overriding
    6. 7.6 Role of Constructors and Destructors in Inheritance
    7. 7.7 Virtual Base Class
    8. 7.8 Summary
    9. Multiple Choice Questions
    10. Answers
    11. Exercises
  12. 8. TEMPLATES: CODE SHARING (GENERICITY)
    1. 8.1 Introduction to Code Sharing
    2. 8.2 Templates
    3. 8.3 Generic Classes
    4. 8.4 Templates with More than One Generic Parameter
    5. 8.5 Summary
    6. Multiple Choice Questions
    7. Answers
    8. Exercises
  13. 9. OPERATOR OVERLOADING
    1. 9.1 Introduction
    2. 9.2 Operator Overloading
    3. 9.3 Binary Operators
    4. 9.4 Unary Operators
    5. 9.5 Input/Output Operators
    6. 9.6 Rules for Operator Overloading
    7. 9.7 Summary
    8. Multiple Choice Questions
    9. Answers
    10. Exercises
  14. 10. FILE HANDLING IN C++
    1. 10.1 File Concepts
    2. 10.2 Files and Streams
    3. 10.3 Opening and Closing a File (Text Files)
    4. 10.4 Opening the Files by Using Function Open( )
    5. 10.5 Reading and Writing Blocks and Objects (Binary Files)
    6. 10.6 Detecting End of File
    7. 10.7 Summary
    8. Multiple Choice Questions
    9. Answers
    10. Exercises
  15. 11. EXCEPTION HANDLING
    1. 11.1 Introduction
    2. 11.2 Traditional Error Handling
    3. 11.3 Exception Handling in C++
    4. 11.4 Summary
    5. Multiple Choice Questions
    6. Answers
    7. Exercises
  16. 12. INTRODUCTION TO UML
    1. 12.1 Introduction to Uml
    2. 12.2 Class Diagrams (Static)
    3. 12.3 Use Case Diagrams (Static)
    4. 12.4 Behavioral Diagrams (Dynamic)
    5. 12.5 Implementation Diagrams
    6. 12.6 Summary
    7. Multiple Choice Questions
    8. Answers
    9. Exercises
  17. 13. POLYMORPHISM: A REVIEW
    1. 13.1 Polymorphism
    2. 13.2 Taxonomy of Polymorphism
  18. Appendix
  19. Index

Product information

  • Title: Object-Oriented Programming with C++
  • Author(s): A.K. Sharma
  • Release date: January 2014
  • Publisher(s): Pearson India
  • ISBN: 9789332540767