What is the sole purpose of a constructor?

A. initialize the class's public variables
B. initialize the class's private variables
C. define the class's prototype methods
D. define the class's public methods


Answer: B

Computer Science & Information Technology

You might also like to view...

Linear time is the class of all complexity functions that are in

A) O(1) B) O(n) C) O(n log n) D) O(log n)

Computer Science & Information Technology

You are given a group communication system with a totally ordered multicast operation, and a failure detector. Is it possible to construct view-synchronous group communication from these components alone?

What will be an ideal response?

Computer Science & Information Technology

A document opened as read-only can actually be modified

Indicate whether the statement is true or false

Computer Science & Information Technology

What are the steps to add a label to a report?

What will be an ideal response?

Computer Science & Information Technology