Go BackOOP Using C++: Week 3

Synopsis
OOP Using C++: Week 3 begins with a discussion of advanced inheritance and then moves on to cover streams in depth.  It also presents advanced tricks of the preprocessor, discusses object-oriented analysis and design, and introduces templates.  Week 3 ends with an explanation of exceptions, standard libraries, and bit manipulation.  Sample listings, complete with sample output and an analysis of code, illustrate the topics of the day.

Audience
This course is for the beginning programmer or for the experienced programmer who wants to learn C++.

Time
8 - 12 hours

Product Code: CPPC03
After completing OOP Using C++: Week 3, the user should be able to:
 
Use containment and private inheritance
Declare friend functions and friend classes
Use streams to manage input and output and to write to and read from files
Make code easier to read and debug using preprocessor directives
Explain the principles of object-oriented analysis and design
Create class and function templates
Create, throw and catch exceptions
Use standard library functions and classes
Manipulate individual bits

Day 15: Advanced Inheritance
Explains what containment is and how to model it.  Explains what delegation is and how to model it.  Shows how to implement one class in terms of another.  Demonstrates how to use private inheritance.

Day 16: Streams
Discusses what streams are and how they are used.  Illustrates how to manage input and output using streams.  Shows how to write to and read from files using streams.

Day 17: The Preprocessor
Describes what conditional compilation is and how to manage it.  Demonstrates how to write macros using the preprocessor.  Shows how to use the preprocessor in finding bugs.

Day 18: Object-Oriented Analysis and Design
Examines how to analyze problems and design programs from an object-oriented perspective.  Explores how to design for reusability and extensibility.

Day 19: Templates
Explains what templates are and how to use them.  Tells why templates supply a better alternative to macros.  Shows how to create class templates and function templates.

Day 20: Exceptions and Error Handling
Covers how exceptions are used and what issues they raise.  Illustrates how to build exception hierarchies.  Explains how exceptions fit into an overall error-handling approach.  Describes what a debugger is.

Day 21: What's Next
Discusses the standard libraries.  Demonstrates how to manipulate individual bits and use them as flags.  Suggests what the next steps are in learning to use C++ effectively.

Week 3 in Review
Presents a program that uses the skills learned during the week.

Reference
Provides reference tables for operator precedence, C++ keywords, and binary and hexadecimal.  Lists example programs.
This course includes the following materials:
 
C++ Glossary
Files of sample program listings and answers to programming exercises


 

Go Back