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

1) A main method can only access static or local variables.
2) In a class that has variables called height and width, methods called getHeight() and getWidth() are examples of accessor methods.
3) Every class has a constructor, whether defined by the programmer or not.
4) Variables that are declared as static are shared among all instances of a class.
5) Aggregation is sometimes described as a has-a relationship.


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

Computer Science & Information Technology

You might also like to view...

List the eight specific categories that each entry in the data dictionary should contain. Briefly give the definition of each category.

What will be an ideal response?

Computer Science & Information Technology

A(n) ________ converts the flashes of light back into two voltages that can be used by a computer

A) laser diode B) photo detector C) electromagnetic wave D) repeater

Computer Science & Information Technology

Scope ____ is the condition whereby projects grow and change in unanticipated ways that increase costs, extend deadlines, or otherwise negatively affect the project goal.

A. creep B. slip C. slide D. erosion

Computer Science & Information Technology

URL stands for uniform ________

Fill in the blank(s) with correct word

Computer Science & Information Technology