Object Oriented Programming

8/29/97


Click here to start


Table of Contents

Object Oriented Programming

ACM Student Chapter

What is this Object ?

Using the Object’s Slots

Example

Example

Example

Thinking Cap Implementation

Thinking Cap Implementation

Thinking Cap Implementation

Thinking Cap Implementation

Thinking Cap Implementation

Thinking Cap Implementation

Thinking Cap Implementation

Files for the Thinking Cap

Using the Thinking Cap

Using the Thinking Cap

Using the Thinking Cap

Using the Thinking Cap

Using the Thinking Cap

Using the Thinking Cap

Using the Thinking Cap

Using the Thinking Cap

Using the Thinking Cap

A Quiz

A Quiz

A Quiz

A Quiz

What you know about Objects

Thinking Cap Implementation

Thinking Cap Implementation

Thinking Cap Implementation

Thinking Cap Implementation

Thinking Cap Implementation

Thinking Cap Implementation

Thinking Cap Implementation

Thinking Cap Implementation

Thinking Cap Implementation

Thinking Cap Implementation

A Common Pattern

Summary

THE END

How to Turn in Your Lab Programs

Administrative Notes

More Administrative Notes

Still More Administrative Notes

Constructors

The Automatic Default Constructor

Automatic Constructor--continue

Constructors

Default Constructor Example

Constructor Example (ctd.)

Constructor Example (end)

Value Semantics

Value Semantics Example

Value Semantics (ctd.)

Classes and Parameters

Constructors with Arguments

Use of Arguments: Quiz

Value Parameters

Call by reference

Const Reference Parameters

Functions that Return a Class

Operator Overloading

Overloading binary comparison operators

Overloaded Binary Arithmetic Operators

Overloading the Output Operator

Overloading << (ctd.)

Overloading the input operator and friend functions

Author: Michael Main and Walter Savitch

Email: mgv@cs.sc.edu

Home Page: http://www.cs.sc.edu/~mgv