C++: Power and Abstraction cover

Programming · Ebook

C++: Power and Abstraction

by Shriira Press

4.8(1,042)208 pagesPublished 2026

C++ keeps C's bare-metal performance and adds powerful abstractions — classes, templates, and a vast standard library — at zero overhead. This free, example-driven book teaches modern C++ (C++17/20) from the ground up: the everyday improvements over C, classes and encapsulation, the all-important RAII idiom, inheritance and polymorphism, templates and generic programming, the Standard Template Library, smart pointers for safe memory, value semantics with copy and move, and exception handling — closing with the habits of clean, idiomatic modern C++. Twelve focused chapters with compilable code and clear diagrams. Learn the language that builds game engines, browsers, and the fast core of everything.

Contents

  1. 1Preface
  2. 2Chapter 1 — What C++ Is
  3. 3Chapter 2 — Getting Started with Modern C++
  4. 4Chapter 3 — From C to C++: The Everyday Improvements
  5. 5Chapter 4 — Classes and Objects
  6. 6Chapter 5 — Constructors, Destructors, and RAII
  7. 7Chapter 6 — Inheritance and Polymorphism
  8. 8Chapter 7 — Templates and Generic Programming
  9. 9Chapter 8 — The Standard Template Library
  10. 10Chapter 9 — Memory and Smart Pointers
  11. 11Chapter 10 — Copy, Move, and Value Semantics
  12. 12Chapter 11 — Error Handling with Exceptions
  13. 13Chapter 12 — Modern C++ and Good Practice