CIS 22B Quiz 4

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

When you dereference an object pointer, use the

-> operator

When a member function is defined outside of the class declaration, the function name must be qualified with the

class name, followed by the scope resolution operator

The following code shows an example of ________ class Point { private: double y = 5.70; double z = 3.0; public: //public memeber functions go here };

in-place initialization

How many default constructors can a class have?

only one

Which type of member function may only be called from a function that is a member of the same class?

private

More than one destructor function may be defined for a class.

False

The constructor function may not accept arguments.

False

Destructor functions are often used to free memory that was allocated by the object.

True

More than one constructor function may be defined for a class.

True

For the following code, which statement is NOT true? class Point { private: double y; double z; public: double x; };

x, y, and z are called members of the class. The name of the class is point. z is not available to code that is written outside the class. x is avaliable to code that is written outside the class


Ensembles d'études connexes

Life Insurance Policy Provisions, Options, and Riders

View Set