Question: public, private set, get private, public get, set regular, inline 1.00000 points QUESTION 17 A ________ is a member function that is automatically called when

public, private

set, get

private, public

get, set

regular, inline

1.00000 points

QUESTION 17

A ________ is a member function that is automatically called when a class object is ________.

constructor, created

destructor, created

constructor, destroyed

destructor, destroyed

both A and D

2.00000 points

QUESTION 18

A C++ member function that uses, but does not change, the value of a member variable is called a(n) ________.

constant

accessor

user

constructor

mutator

1.00000 points

QUESTION 19

If Circle is the name of a class, which of the following statements would create a Circle object named myCircle?

Circle myCircle();

Circle myCircle;

myCircle Circle;

myCircle Circle();

None of the above

1.00000 points

QUESTION 20

A constructor may have a return type of ________.

int

void

bool

Any of the above

None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!