Week 5

Home Windows C++ 241 C++ 242 Contact Info Contents

Week 5 - February 5

Back Up Next

Due Today

Chapter 8
Program #4

Preparation for Class

In this class we will review all that we have covered in the design and creation of object-based programs, adding the additional facility of operator overloading.
If you have specific questions about the features of classes covered in chapters 6 through 8, this will be the time to bring them up, since the midterm is next week.
As you read chapter 8, think about what kinds of objects you might design which would make use of operator overloading and what kinds of objects would probably not use this feature.

Topics Covered in this Class

Some Technical Issues (Based on assignments)
What is a char, and what does converting it do
Accessing members via pointers and references
When can you access a private function
Sizeof applied to an object of a class - where is the code?
When are constructors and destructors called?
Arrays of objects, arrays of pointers to objects
Object Design
Identify the objects
Behavior and attributes
Object diagrams
Class diagrams
Public Functions
Should any data be public? Alternative views.
Implementation issues
Case Study - TicTacToe
Case Study - Elevator Simulation (time allowing)
More Technical Stuff Related to Object Implementation (Ch. 7)
Applying const to objects and member functions
When to use friend functions and classes
Use of static data members and functions
The this pointer

Assignments

Chapter 9
Program #5

Back Up Next

Home Windows C++ 241 C++ 242 Contact Info Contents

Copyright © 2000  Charlie Poole. All rights reserved.
Revised: July 15, 2002 - cpoole@ctc.edu