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

1. An object initializer calls the default constructor before executing.
2. Only certain objects have a Me reference.
3. The Me reference is used implicitly to refer to the instance variables, properties and methods
of an object.
4. Programmers are encouraged to use method-parameter names that that are the same as instance variable names.
5. Me can be used to distinguish between a local variable and an instance variable that share the
same name.

1. True
2. False. Every object has a Me reference (to itself).
3. True.
4. False. Avoiding using method-parameter names that conflict with instance variable names helps prevent certain subtle, hard-to-trace bugs.
5.True.

Computer Science & Information Technology

You might also like to view...

A document must have a header

Indicate whether the statement is true or false

Computer Science & Information Technology

The ________ is the first page of a formal report

A) table of contents B) index C) cover page D) table of authorities

Computer Science & Information Technology