Instructor-led training
Advanced C++ Programming Training in Sweetwater, Florida
The comprehensive, five-day course consists of three modules.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Sweetwater, Florida or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
Inheritance and Polymorphism
Inheritance Concept
Inheritance in C++
Protected Members
Base Class Initializer List
Composition
Member Initialization List
Order of Initialization
Inheritance vs. Composition
Summary Inheritance
A Case for Polymorphism
Dynamic Binding
Pointer Conversion in Inheritance
Polymorphism Using Dynamic Binding
Virtual Function Specification
Invoking Virtual Functions
VTable
Virtual Destructors
Abstract Class Using Pure Virtual Function
Employee as an Abstract Class
Heterogeneous Collections
Summary Polymorphism
ANSI C++ Library
ANSI C++ Library
Hello ANSI C++
Namespaces
ANSI C++ String Class
Templates
Templates
General Purpose Functions
Macros
Function Templates
Template Parameters
Template Parameter Conversion
Function Template Problem
Generic Programming
General Purpose Classes
Class Templates
Array Class Implementation (array.h)
Using the Array Template
Template Parameters
Class Template Instantiation
Non Type Parameter Conversion
Standard Template Library
STL Components
Generic Programming
STL Elements of a Simple Program
Simple STL Program
Map Container
Input/Output in C++
Input/Output in C++
Built-in Stream Objects
Output Operator <<
Input Operator >>
Character Input
String Input
Formatted I/O
Streams Hierarchy (Simplified)
File I/O
File Opening
Integer File Copy
Character File Copy
Overloading Stream Operators
Implementing Overloaded Stream Operators
Practical Aspects of C++ Programming
Interfacing C++ to Other Languages
Calling C from C++
_cplusplus Macro
Calling C++ from C
Interface Module for Stack Class
Namespace Collisions
ANSI Namespace
Reliability Philosophies of Languages
Prototypes and Type Checking
Constant Types
Access Control in C++
Reviews and Inspections
Inspections and C++
Testing Strategies for C++
Performance Considerations
Class Libraries
Advanced Polymorphism and Inheritance
Good Class Design
String Class
Public Inheritance
Public Inheritance Problems
Inheritance and Semantics
Private Inheritance
Composition
Composition vs. Private Inheritance
Templates vs. Inheritance
Protected Inheritance
Implementation Encapsulation
Interface Inheritance
Exception Handling
Exception Handling
try and catch
Exception Flow of Control
Context and Stack Unwinding
Handling Exceptions in best Context
Benefits of Exception Handling
Unhandled Exceptions
Clean Up
Multiple Catch Handlers
Runtime Type Information
Runtime Type and Polymorphism
type_info Class
typeid Operator
Compiler Options
Safe Pointer Conversions
Dynamic Cast
New C++ Style Casts
Static Cast
Reinterpret Cast
Const Cast
Inheritance Hierarchies and Multiple Inheritance
Class Hierarchy in Smalltalk
Smalltalk Class Hierarchy (Simplified)
Collection Classers
Multiple Inheritance Solution
Basic Derivation
Ambiguities in Multiple Inheritance
Resolving Ambiguity
Duplicate Subobjects
Virtual Base Classes
Applications of C++ Concepts
Orthodox Canonical Form (Review)
Object Validation
String Class
Smart Strings
Reference Counting
Reference Counting Rules
Smart String Pointer
Generic Smart Pointers
Constructing Smart Pointers
Smart Pointer Difficulties
An Overview of Templates
Templates
Overloading Functions
Template Functions
Specializing a Template Function
Disambiguation under Specialization
Template Classes
An Array Template Class
Instantiating a Template Class Object
Friends of Template Classes
Templates with Multiple Type Parameters
Non Class-type Parameters for Template Classes
Comments Regarding Templates
Templates and Inheritance
Overview of STL
Perspective
History and Evolution
New Features
The Standard Template Library
Generic Programming
Design Goals
Header Files
STL Components
Containers
Algorithms
Iterators
Compiling STL Code
Examples from STL
vector
Vector.cpp
list
List.cpp
map
Map.cpp
set
Set.cpp
multiset
Multiset.cpp
find
FindVector.cpp
find list
merge
Overriding the Default Comparison
Iterators
Iterators.cpp
Functions
Functions.cpp
Function Objects
FunctionObject.cpp
STL Containers
Vectors
Vector.cpp
Vector Operations
Typedefs
Deques
deque as Stack
deque Functionality
Lists
Generic Programming
Tradeoff with Lists
List Memory Allocation
list Functionality
Associate Containers
Sets
Sets with User Defined Objects
Multisets (Bags)
Maps
Multimaps
STL Iterators
Pointers
Template Version
String Version
A Generalization of Pointers
STL Iterators
Input Iterators
Output Iterators
Forward Iterators
Bidirectional Iterators
Random Access Iterators
What makes advanced C++ hard to master
The syntax is rarely the obstacle at this level. The difficulty is that many C++ features interact, and mistakes show up as subtle runtime behavior rather than compile errors. The syllabus builds in layers, and each layer depends on the one before it.
- Inheritance and polymorphism. Dynamic binding, virtual function specification, the VTable, pointer conversion in inheritance and abstract classes with pure virtual functions come first. Virtual destructors and heterogeneous collections are where a common misconception appears: that a base-class pointer will always clean up a derived object correctly.
- Class design choices. Public, private and protected inheritance, composition versus private inheritance, templates versus inheritance, and interface inheritance are all design decisions. Several options compile, but only some preserve the semantics of the class.
- Exceptions and RTTI. Stack unwinding, handling an exception in the best context, clean up and multiple catch handlers all affect resource ownership.
dynamic_cast,typeidand the static, reinterpret and const casts are easy to confuse. They differ in how safe they are. - Multiple inheritance. Ambiguities, duplicate subobjects and virtual base classes are covered. A frequent misconception is that multiple inheritance is just single inheritance with more parents.
- Smart pointers and reference counting. The course builds smart strings and generic smart pointers from the orthodox canonical form. This makes object lifetime explicit, and the syllabus also covers the difficulties these constructs bring.
- Templates and the STL. Template specialization, friends of template classes and non-type parameters lead into containers, iterators (input through random access), function objects and algorithms such as
findandmerge.
Who it suits and what to take around it
The stated prerequisite is substantial C++ programming experience. The opening module reviews inheritance, the standard library, templates, I/O streams and practical topics such as testing, efficiency and interfacing to C. The instructor adjusts that review to the class's background, so the course suits teams with mixed experience that want a shared baseline before the advanced material.
Developers whose C++ is still shaky may first want C++ Programming, a five-day course that builds the core language skills this one assumes.
This course concentrates on class design, polymorphism, exceptions, RTTI, multiple inheritance, hand-built smart pointers and the STL. For newer language features, Modern C++ Programming using C++11/C++14 is a natural next step, and Advanced C++ for Experts goes further into design patterns and the STL. Organizations working with other C++ versions can ask about customized private training through a training proposal.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- A class hierarchy that must stay correct as it grows. For example, a team might maintain an
Employee-style abstract base class with many derived types stored in a heterogeneous collection. Virtual destructors, pure virtual functions and the choice between public inheritance and composition decide whether deleting through a base pointer is safe and whether new subclasses fit the design. - Wrapping legacy C code. A team might expose a C++ stack class to existing C callers. The syllabus's topics on calling C from C++, calling C++ from C, the
_cplusplusmacro, interface modules and namespace collisions apply directly, as do exception handling and clean up at the language boundary. - Replacing hand-written containers with the STL. A group might swap custom linked structures for
vector,list,mapandset. They would choose containers using the list-versus-vector tradeoffs, pick the right iterator category, and customize ordering with function objects and overridden comparisons.
AI coding assistants and these topics
AI coding assistants can help here. They can explain unfamiliar inheritance hierarchies, decode long template error messages, draft test cases for a class, and sketch STL algorithm calls that you then check against the iterator categories you need.
They tend to fail where C++ semantics are subtle:
- A base class without a virtual destructor, or slicing when objects are copied by value.
- Reference-counting or smart-pointer code that looks plausible but mishandles copying, assignment or self-assignment.
- Iterator invalidation after inserting into or erasing from a
vectorordeque. - Casts: an assistant may reach for
reinterpret_castwheredynamic_castis the safe choice, or ignore ambiguity in multiple inheritance. - Exception-unsafe code that leaks resources during stack unwinding.
To verify generated code, compile with strict warnings treated as errors, run it under sanitizers (address and undefined-behavior checkers), and write tests for copy, assignment, destruction and exception paths. Also review ownership by hand. The design principles taught in this course are what let you judge whether a suggestion is correct.
Frequently asked questions
What level is Advanced C++ Programming?
It is an advanced, five-day course. It assumes substantial C++ experience, though the first module reviews inheritance, templates, the standard library, I/O streams and practical issues, adjusted to the class's background.
What are the prerequisites?
Substantial C++ programming experience. Developers who need a stronger foundation can start with the C++ Programming course and return to this one afterward.
What does the course cover?
Polymorphism and dynamic binding, class design and the orthodox canonical form, templates, exception handling, RTTI and C++ style casts, multiple inheritance, smart pointers and reference counting, interfacing with C, and the STL (containers, iterators, algorithms and function objects). Case studies and lab exercises are included.
Can it be delivered privately, onsite or online?
Yes. HSG delivers private training for organizations at the client's location or live online.
Can the content be customized?
Private course content can be customized, including to the technology versions your organization uses. Use the training proposal request to describe your needs.
Training locations
Advanced C++ Programming training across the U.S. and beyond.
We provide private Advanced C++ Programming training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Advanced C++ Programming training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.