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...

___________ and ___________ are the universal search tools included in OS X and Ubuntu

A) Launchpad, Dash B. Spotlight, Panel C. Finder, Nautilus D. Spotlight, Dash

Computer Science & Information Technology

Distributed cache mode is the best solution for branch offices that already have servers performing other functions, such as a domain controller or a DHCP server.

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

Computer Science & Information Technology