Week 6

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

Week 6 - February 12

Back Up Next

Due Today

Chapter 9
Program #5

Preparation for Class

Midterm Exam Today
Object-Oriented principles and concepts
Programming paradigms
C++ features from chapters 1 through 7
Group Presentations Today
Focus primarily on what objects and classes you found.
What are the attributes and behaviors of your classes.
How do your classes relate.
Be ready to answer questions about objects, attributes, behaviors and relations that you considered but decided to exclude.
Talk about over-achievers! One of our groups has developed the Binary Elevator Simulation Team (B.E.S.T.) Web Site.

Topics Covered in this Class

MidTerm Exam - 30 minutes
Group Presentations - 15 minutes per group
Data Objects and Operator Overloading
User Defined Data Types as Data (little) Objects
Revisiting the Time class (Ch. 6 & 7)
Time with addition and subtraction.
Restrictions on Operator Overloading (8.3)
Friend versus Member implementations (8.4)
Overloading << and >> (8.5)
Unary & Binary operators (8.6, 8.7)
Case Study - Array class (8.8)
Conversion operators (8.9)
Case Study - String class (8.10)
Overloading ++ and -- (8.11)
Case Study - Date class (8.12)
Questions on Operator Overloading and Assignment 5
Inheritance
"Is a" versus "has a" relationships
Model "is a" (generally) by inheritance
Model "has a" (generally) by composition
Base and derived classes - Shapes
Definition of protected access (9.3)
Do Not cast base to derived pointers - (9.4)
Overriding member functions (9.6)
Kinds of inheritance (9.7,  9.8)
Order of constructors and destructors (9.9)
Use of base class pointers (9.10)
Inheriting from someone else's code (9.11)
Other kinds of relationships (9.12, 9.13)
Case Study - Point, Circle,  Cylinder (9.14)
Case Study - TicTacToe

Assignments

Chapter 10
Group Reports due
Program #6

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