CIS 22B - Notes for Tuesday 3/6

Announcements and Reminders

Review exercise 15

More Class Concepts

CIS27 Notes

Examples (zip file)

The this pointer

Static Data Members

Static Member Functions


Lab Exercise #9

Put your name, the compiler and operating system used, and Lab Exercise #9 in a comment at the top of your program. Email your source code. This lab exercise is due at the beginning of the next lecture.

Complete the following program:

class Circle
    static double Pi;
    float radius;
    Circle(float = 1.0);
    static void changePi(double);
    friend void printArea(const Circle& object);


int main()
    Circle c(5.0);

******  Program Output  ******

The area is 78.5
The area is ?