KRHS Internet Lesson

Teacher Name:Mr. Rung                          Date of Lesson: January

Course Name: C++                    Lesson Name: Chap 12.3ab

Student Name

Password


Objective
To complete the wokbook exercises.


Primary Focus
Answer the questions below.

Site Links
Course Home Page

Additional Resources

Site Links


Question #1

Classes are normally defined in header files so that they may be reused.

True         False


Question #2

In general, header files contain declarations of variables, functions, classes, and the implemen- tation of the functions and classes.

True         False


Question #3

If the semicolon after a class definition is omitted, the compiler will report several errors.

True         False


Question #4

Member functions allow programmers to send information to the class and receive information.

True         False


Question #5

Constructors build an entire program based on a given class.

True         False


Question #6

What is the purpose of the #ifndef and #define compiler directives which appear at the top of files with class definitions?


Question #7

What information is placed after the public keyword in a class definition?


Question #8

What information is placed after the private keyword in a class definition?


Question #9

When is a copy constructor used ?


Question #10

When implementing a member function like the one shown below, a special operator (::) is necessary. What is the name of this special operator?

// Method to find the area of the circle
double circle::Area()
{
return(PI*radius*radius);
}