Students will receive a thorough introduction to object-oriented programming in C++. Students will define classes and use those classes for building applications. The classes will include overloaded operators, friend functions, constructors and destructors. Students will create new classes from existing classes using inheritance and polymorphism. In addition students will learn to read and write data to files. This class is a continuation of the Introduction to C++ class. Students will need access to a C++ compiler. There are compilers available for download.
Objectives
Students will create C++ applications that use overloaded functions and function templates.
Students will create programs that use Structures and Unions.
Students will create C++ programs that use classes. The classes will contain constructors, Friend functions and static members.
Students will create C++ programs that use pointers to class objects, copy constructors and dynamic memory allocation.
Students will create C++ classes that contain functions for overloaded operators.
Students will create classes that build on existing classes by using inheritance.
Students will define classes that contain virtual functions and use them to create polymorphic objects.
Students will create C++ programs that handle exceptions.
Students will write C++ applications that read from and write to files.
Students will be able to write a C++ application that combines the concepts learned in this class
Book
Beginning ANSI C++: The Complete Language
Author Ivor Horton Publisher Apress ISBN 1590592271
Lesson 1: Function Overloading and Function Templates
Read Chapter 9
Lesson 2: Creating Objects with Structures and Unions
Read Chapter 11
Lesson 3: Creating Classes
Read Chapter 12
Lesson 4: Class Operations
Read Chapter 13
Lesson 5: Operator Overloading
Read Chapter 14
Lesson 6: Inheritance
Read Chapter 15
Lesson 7: Virtual Functions and Polymorphism
Read Chapter 16
Lesson 8: Program Errors and Exception Handling
Read Chapter 17
Lesson 9: Input, Output and Files
Read Chapter 19 - You can stop a page 925 since the rest of the chapter applies to template classes, which we will cover in the next lesson.
Lesson 10: Templates
Read Chapters 18 and 20
All content of this document is copyrighted by IDEA Solutions and the author. All rights reserved. Content may not be used without permission.