Answer the following questions true (T) or false (F)

1. A constructor is like a function. It can return any type value needed.

2. A constructor usually terminates by falling off the end of its block, but a return statement is permitted if there is no argument add following the word return..


1. False
Explanation: A constructor may not return any value, not even void. There can be no return type in front of the name.
2. True
Explanation: Since a constructor may need to terminate prior to falling off then end, and may need a return statement. However, a constructor cannot return any value whatsoever, so the return can not have an argument.

Computer Science & Information Technology

You might also like to view...

Given enough points, the Chaos Game produces a ____ Triangle every time, regardless of one's random starting point.

A. Sierpinski B. Right C. Scalene D. Hyperbolic

Computer Science & Information Technology

Access Options display in the Navigation view

Indicate whether the statement is true or false

Computer Science & Information Technology

A way to restrict data entered in a field by displaying a list of data instead of having to manually type the data

a. Source data b. Lookup field c. Input mask

Computer Science & Information Technology

Because files are saved to SkyDrive by default, there is no need to make backup copies

Indicate whether the statement is true or false

Computer Science & Information Technology