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

1) An object of a class that has a reference to another object of the same
class may access all the private data and methods of that class.
2) A constructor may not have a return value.
3) A constructor may not call other methods.
4) Attempting to overload a constructor with another constructor that has the
exact same signature (name and parameters) is a compilation error.
5) Only the first constructor for a class is defined without a return value.
Subsequent constructors have the return type void.

1) T
2) T
3) F
4) T
5) F

Computer Science & Information Technology

You might also like to view...

You can only use the ________ to add calculated results to a report

A) Label Box B) Text Box C) Design Grid D) Property Sheet

Computer Science & Information Technology

In order to write data to a text file, you must create a file object using the ____________.

a. Text Reader class b. Text Writer class c. Stream Reader class d. Stream Writer class

Computer Science & Information Technology