RTD Training & Development

C++ for Java Programmers

Call us on +44 (0)1225 66 72 72 or send us a message

C++ for Java Programmers

5 days hands-on £2,425+VAT

This course can be delivered over the web

Next scheduled date:
Monday June 17th, 2024 Enrol Now!

Can't wait that long? It may be possible to deliver this course at an earlier date. Contact us if you're interested
Enables existing Java programmers to make the jump to programming in C++, including the latest features of the language

Outline

Basics

  • Comparison with Java
  • Files and headers
  • The preprocessor
  • Functions and prototypes
  • Scope

Data Types

  • Structs, classes and unions
  • Pointers
  • Arrays
  • Ranges
  • Lvalue references
  • Const and constexpr

Classes and Objects

  • Access control
  • Inlining
  • Namespaces
  • Destructors
  • Dynamic memory allocation
  • Member initialisation
  • Copying objects

Polymorphism

  • Function overloading
  • Virtual functions
  • Virtual destructors
  • Abstract classes
  • Public and private inheritance
  • Multiple inheritance
  • Virtual super-classes
  • Dynamic casts

Operators

  • Operator overloading
  • Initialisation
  • Rvalue references and move semantics
  • Copy and move operations

Streams

  • Basic stream I/O
  • Overloading stream operators
  • Using stream methods
  • Using manipulators

Templates

  • C++ templates vs. Java generics
  • Template functions
  • Template classes
  • Template reference arguments

Overview

C++ couples the benefits of object-oriented programming with the efficiency of C. Object orientation results in more robust code that is easier to understand and maintain.

This course covers all the major features of C++ and highlights the differences to Java.

Participants acquire hands-on experience of the language by working through a wide selection of exercises.

Objectives

On successful completion of this course, participants will be able to:

  • Write, compile and execute C++ programs
  • Appreciate the similarities and differences between C++ and Java
  • Use containers and templates
  • Safely manage resources using matched constructors and destructors
  • Write efficient C++11 & C++14 code utilising the new features
  • Utilise the new multi-threading facilities
  • Utilise the new features of the Standard Library

Audience

This course is aimed at programmers, analysts, engineers and technical managers who already have some knowledge of Java and who are interested in C++ program development.

Prerequisites

This course assumes a working knowledge of the Java language up to the level covered in the Java Programming course.

share buttons
share on twitter
share on linkedin
share on facebook
share by email