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. can do anything any other method can do. , and d. usually initializes all, or most, member variables

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...

The three classes of intruders are: clandestine user, misfeasor, and ________ .

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

Computer Science & Information Technology

Computer systems always include ________ devices for permanent storage of instructions and data

A) kernel memory B) flash memory C) volatile storage D) nonvolatile storage

Computer Science & Information Technology

The process of tracking money that is coming in and going out is called ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

An error ________ is a message that displays whenever a formula cannot perform the calculation in the cell formula

Fill in the blank(s) with correct word

Computer Science & Information Technology