COP 3330

Spring 2009

Midterm Study Guide

·         Makefiles

o    Write a simple makefile with a main routine file, one .h file, and one .cpp file.

·         OOP

o    What is a class?

o    What is an object?

o    What is the difference between an object and class in C++

·         Single Class Usage (rules and syntax)

o    Prototype of a class ( .h file).

o    Implementation of a class (.cpp file)

o    Private areas

o    Public  areas

o    Friends

o    Constructors/Destructors and default parameters

·         Accessing public and private areas of a class (rules)

·         Pointers

o    Defining

o    Using

o    Different syntax for accessing pointers

o    Dynamically Allocating storage using the “new” method.

o    Deleting

o    Pointers to classes

o    The “this” pointer

·         Passing Parameters

o    By value

o    by reference

o    Classes passed as parameters

·         Overload Operators

o    << ostream

o    >> istream

o    ==|<|>|!=|<=|>=  Logical Operators

o    +|/|*|- Mathematical Operators

o    ++|-- Increment and decrement operators (postfix/prefix)

·         Review rules for

o    Constructors

o    Destructors

o    What “friends” can and cannot do.

o    The “this” pointer

o    What “&” and “*” mean