Selected Topics in C++

Selected Topics in C++Reviews
Author: M Liyanage
Pub Date: 2015
ISBN: 978-1511797542
Pages: 296
Language: English
Format: EPUB/MOBI/AZW3
Size: 10 Mb

Download

C++ is a language that sets itself a bit apart from the rest. C++ has no garbage collection. You need to collect your own garbage. C++ has stack memory and heap memory. You need to control where you want to put your objects. It has constructors and destructors. You need to know when and how they are called. Then it has multiple inheritance, something that’s not part of most languages. It has pointers and references. You need to know how and when you should use them. Then you have virtual functions and virtual tables and virtual pointers. When you know these core concepts C++ becomes a powerful language to use because you can control your program to do exactly what you want. Then you can unleash the power of C++.

+

Table of Contents

The size of an object
The Virtual Mechanism
Structs, Classes and their Inheritance
Object Construction
Pointers
Non-Constructible, Non-Copyable Class
Understanding new
Understanding Constructors
Forward Declarations, Compiling and Linking
Copy Constructor and Object Cloning
Class Member Access
Class member offsets
Function Pointers
Function Shadowing
Understanding the Destructor
Operator Overloading
Multiple Inheritance
Casting
Conversions and Promotions
Name Lookup