A constructor

a. can only be used to initialize
b. must initialize all member variables
c. can do anything any other method can do.
d. usually initializes all, or most, member variables


c and d
Explanation: c) is right. The exception is that a constructor cannot be called as if it were a member function. d) Aconsructor’s purpose is allcating and initializing resources.

Computer Science & Information Technology

You might also like to view...

Tap or click the ____________________ button on the right side of the title bar to exit Outlook.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The Hyper-V PowerShell Management Library is available from the ___________ site.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Two types of professional-looking lists can be created in OpenOffice Writer

Indicate whether the statement is true or false

Computer Science & Information Technology

A(n) ____ region is an area in a template-based page that can be edited.

A. editable B. optional C. repeating D. variable

Computer Science & Information Technology