C++ for C Programmers

4 Day Course
Hands On
Code LGCPPPG1

Book Now - 1 Delivery Method Available:

Scheduled Online Onsite

C++ is undoubtedly one of the most popular programming languages for software development. It brings language enhancements and object-oriented programming support to C. However, C++ is a large and sometimes difficult language, and even with a C background, a programmer needs to understand C++ programming style as well as C++ constructs to get the best out of it. This highly successful C++ for C Programmers course has a thorough theoretical and practical coverage of the language. This helps to eliminate the misconceptions and poor programming practice that can cause so many problems.

For experienced C programmers, the course will illustrate how to get the benefits of good software engineering and code reuse by using standard C++ and object-oriented programming techniques in real-world programming situations. There will be ample opportunity to apply these techniques during the practical sessions.

Delegates without extensive C experience should attend our C++ for non-C Programmers course instead.

This is a hands on course with a mix of tuition and practical sessions for each technical chapter which reinforce the C++ syntax and object-oriented programming techniques covered in the course.

Objectives

Delegates will learn how to:

  • Define classes
  • Write class member functions
  • Use constructors, destructors and dynamic memory
  • Write code that is efficient and robust
  • Build new classes from other classes using inheritance, composition and association
  • Use template classes
  • Use operator overloading
  • Design and write classes with polymorphic behaviour.

An Overview of OO Programming and C++ (5 topics)

  • Review of OOP principles
  • Behaviour, state, identity, inheritance, polymorphism
  • History and evolution of C++
  • Key features of C++
  • C++ as a better and safer C

The Class Approach (6 topics)

  • Grouping of data and functionality
  • Syntax of a class declaration
  • Syntax of use
  • Public and private
  • Abstract Data Types
  • Program structure

Providing Class Functionality (8 topics)

  • Member functions
  • Function overloading
  • Default arguments
  • Ambiguities
  • Anonymous arguments
  • Resolving scope conflicts
  • The Scope resolution operator
  • The this pointer

Object birth and death (7 topics)

  • Life of an object
  • Constructors
  • Operator new
  • Death of an object
  • Destructors
  • Operator delete
  • Dynamic arrays

Efficiency and Integrity Issues (6 topics)

  • Enumerations
  • Const declarations
  • Const member functions
  • Const member data
  • Inline function mechanism
  • Reference variables

Composite Classes (5 topics)

  • An opportunity for reuse
  • Scoping and initialisation
  • Order of construction
  • Member Initialisation lists
  • Use of fundamental classes

Associative Classes (4 topics)

  • Delegating class functionality
  • Dynamic associations
  • Custody and lifetime
  • Constant associations

Operator Overloading (9 topics)

  • Operator functions
  • Unary operators
  • Binary operators
  • Global operators
  • Member operators
  • Subscript operators
  • Input operators
  • Output operators
  • Guidelines

Class Properties (5 topics)

  • Static data members
  • Static member functions
  • Nested types
  • Forward declarations
  • Friend classes

Container Classes (8 topics)

  • Organising collections of objects
  • Template classes
  • Vector
  • List
  • Iterators
  • Template functions
  • Algorithms
  • Using the Standard Library

Copying and Conversions (4 topics)

  • The copy assignment operator
  • Copy constructors
  • Conversions to a class object
  • Conversions from a class object

Inheritance (7 topics)

  • Extension of existing classes
  • Notation, syntax, terminology
  • Protected members
  • Scoping and initialisation
  • Multiple inheritance
  • Abstract base classes
  • Guidelines

Polymorphism (8 topics)

  • Modified class behaviour
  • Virtual functions
  • Virtual destructors
  • Late binding
  • Inside the virtual function mechanism
  • Pure virtual functions
  • Use of pointers to base type
  • Guidelines

The Way Ahead (4 topics)

  • Review
  • Support after this course
  • Further C++ information sources
  • Future evolution of C++

C Programmers wishing to learn or improve in C++. Delegates must have solid experience of C including structures (i.e. struct and/or class); Declaration and use of pointers; Function declaration, definition and use with call by value or call by pointer; Dynamic memory allocation (i.e. malloc and free, or new and delete); Multiple source file projects (requiring project files or makes files). You should also have a good appreciation of object-oriented principles or have attended our Object-Oriented Primer course. Delegates with less than four months or no recent experience of C should attend the C++ for non-C Programmers course instead.

Additional Learning

The courses below may help you meet the knowledge level required to take this course. If you are unsure please ask a training advisor

  • C++ for Non C Programmers

    A 5-day Training Course on C++ for Non C Programmers; provides thorough practical and theoretical coverage of for the experienced application programmer.

    course code QACPP Onsite available
Ask a Question

or call:408-759-5074

Course PDF

Print

Share this Course

+1
Share

Recommend this Course