Zoom Outline PDF View  or  Email Back to Schedule for Nebraska


Advanced C++




SUMMARY:   C++ is the standard language for implementing object-oriented designs, but although based on C, C++ introduces many subtle syntactic and design issues. For developers whose C++ experience goes back further, many of the changes as a result of standardisation make standard C++ a very different programming environment.

This course will keep the audience abreast of these changes. It covers four main areas: new and advanced language features; using the standard library; implementing object-oriented concepts and patterns in C++; effective C++ programming techniques and idioms. It also suggests ways to maximise efficiency, code quality, and reusability.

Students will gain a greater understanding of the capabilities and potential pitfalls of the C++ language and will be more able to use C++ language features to write robust, quality software and you will also have a good grounding to make the best use of specific component technologies, such as COM and CORBA.

AUDIENCE:   Experienced C++ programmers wishing to substantially enhance their development skills.

PREREQUISITES:   You must have solid and genuine experience of C++ including class definitions and member functions; constructors and destructors; references; virtual functions; new and delete operators. Ideally, you will have attended one of our C++ programming courses and have been using C++ solidly for at least six months. You should also have an appreciation of object-oriented principles, possibly from attending the Object-Oriented Software Development or an object-oriented analysis and design course.

DURATION:   5 Days

APPROACH:   This a comprehensive five-day course with a combination of lectures and practical sessions for each chapter to reinforce the topics covered throughout the course. The practicals use code skeletons, so that you can concentrate on specific C++ features.

Recommended Follow-on Courses

  • Windows Programming with Visual C++ and the MFC Library
  • Object-Oriented Design for C++ Development
  • Developing CORBA Applications in C++
  • COM Programming with C++

OBJECTIVES:  

  • describe advanced inheritance issues, such as private inheritance, multiple inheritance, and virtual base classes
  • use advanced C++ language features and programming techniques, such as Run-Time Type Identification (RTTI), smart pointers and delegation
  • use different memory management techniques and strategies to customise and optimise memory usage in a C++ program
  • design, implement and use template functions and template classes
  • take advantage of the standard C++ library
  • design and use container classes and iterators
  • use C++ exceptions to simplify error handling in large programs

COURSE CONTENT:  
  1. Evolution of Standard C++
    • ISO C++; Changes to the core language; Overview of the standard library
  2. C++ and OO Refresher
    • Abstraction and encapsulation; Composition and association; Inheritance and polymorphism; Patterns and idioms
  3. Copying and Conversions
    • The static_cast, dynamic_cast, const_cast and reinterpret_cast keyword casts; Logical vs physical const-ness and the mutable keyword; Converting constructors and the explicit keyword; User defined conversion operators; Copy construction and assignment
  4. Scope
    • Static class members; The Singleton pattern; Nested classes; Nested class forward declarations; The Cheshire Cat idiom; Namespaces
  5. Delegation Techniques
    • The Object Adapter pattern; The Null Object Pattern; The Proxy pattern; Overloading the member access operator; Smart pointers; The Template Method pattern; Factory objects
  6. Subscripting Techniques
    • Overloading the subscript operator; Overloading with respect to const-ness; Smart references; Multi-dimensional subscripting; Associative containers
  7. Template Functions
    • Using and implementing generic algorithms with template functions; Overloading and specialising template functions; Template instantiation and linkage
  8. Template Classes
    • Using and implementing generic types with templates classes; Multiple template parameters; The standard vector, list, pair, and map template classes
  9. Iterators and Algorithms
    • The need for Iterators; The standard library (STL) iterator model; Generic algorithms using iterators; STL algorithm pitfalls; Introduction to function objects
  10. Exception Handling
    • Classifying and handling exceptions; Catching and throwing exceptions; The standard exception class hierarchy; Uncaught exceptions; Strategies for handling exceptions
  11. Exception Safety
    • Resource acquisition idioms for exception safety; Exceptions in constructors; Exceptions in destructors; Exception safe classes; STL exception safety guarantees
  12. Memory Management
    • Object life cycle; Allocation failure; Customising memory allocation; Optimising allocation for a class through caching; Derivation safe allocation; Controlling timing of construction and destruction
  13. Reference Counting
    • Reference counting shared representation; Reference counted strings for copy optimisation; Subscripting issues; Smart pointers for simple, automatic garbage collection
  14. Inheritance Techniques
    • Subtyping vs subclassing; Abstract and concrete base classes; Inheritance scoping issues; Multiple inheritance; Virtual base classes; Interface classes; Mixin classes; Runtime type information (RTTI); Private and protected inheritance; The Class Adapter pattern
  15. Template Techniques
    • Templating on precision; Template adapters; Default template parameters; Template specialisation; Trait classes; Member templates; Non-type template parameters; Optimising template code space
  16. Functional Abstraction
    • Traditional callbacks using function pointers; The Command pattern; More on function objects; Member function pointers
TA/05

© 2007 Verhoef Training, Inc.

Schedule Dates

Course offered as
Inhouse or Public


There are no classes scheduled for this subject at this time.

Send us a request for this class

or

contact your account manager for scheduling information.

Contact Us


Copyright © 2007 - Verhoef Group of Companies - All Rights Reserved