C++ Crash Course: a fast-Paced Introduction


Part I: The C++ Core Language



Yüklə 7 Mb.
Pdf görüntüsü
səhifə23/71
tarix20.09.2023
ölçüsü7 Mb.
#145939
1   ...   19   20   21   22   23   24   25   26   ...   71
C Crash Course A Fast-Paced Introduction by Josh Lospinoso

Part I: The C++ Core Language
Chapter 1: Up and Running
This introductory chapter will help you 
set up a C++ development environment. You’ll compile and run your 
first program, and you’ll learn how to debug it.
Chapter 2: Types
Here you’ll explore the C++ type system. You’ll learn 
about the fundamental types, the foundation upon which all other types 
are built. Next, you’ll learn about plain-old-data types and fully featured 
classes. You’ll delve into the role of constructors, initialization, and 
destructors.
Chapter 3: Reference Types
This chapter introduces you to objects 
that store the memory addresses of other objects. These types are the 
cornerstone of many important programming patterns, and they allow 
you to produce flexible, efficient code.
Chapter 4: The Object Life Cycle
The discussion of class invariants 
and the constructor is continued within the context of storage dura-
tions. The destructor is introduced alongside the resource acquisition is 
initialization (RAII) paradigm. You’ll learn about exceptions and how 
they enforce class invariants and complement RAII. After a discussion 
of move and copy semantics, you’ll explore how to operationalize them 
with constructors and assignment operators.
Chapter 5: Runtime Polymorphism
Here you’ll be introduced to 
interfaces, a programming concept that allows you to write code that’s 
polymorphic at runtime. You’ll learn the basics of inheritance and 
object composition, which underpin how you can operationalize inter-
faces in C++.


xxxiv
Introduction
Chapter 6: Compile-Time Polymorphism
This chapter introduces 
templates, a language feature that allows you to write polymorphic code. 
You’ll also explore concepts, a language feature that will be added to a 
future C++ release, and named conversion functions, which allow you to 
convert objects from one type to another.

Yüklə 7 Mb.

Dostları ilə paylaş:
1   ...   19   20   21   22   23   24   25   26   ...   71




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin