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

1. A constructor call is required for every object that’s created.
2. Constructors cannot be overloaded.
3. Private class members are accessible only from outside the class in which they’re declared.
4. Public class members are accessible wherever the program has a reference to an object of the class.
5. Each class you create becomes a new type that can be used to declare variables and create objects.


1. True.
2. False. Constructors can be overloaded.
3.False. Private class members are accessible only within the class in which they’re declared.
4. True.
5. True.

Computer Science & Information Technology

You might also like to view...

Which of the following is a correct declaration of enumerated type for the suits of a deck of cards?

a) enumerated type Suit = { hearts, spades, diamonds, clubs }; b) enum Suit {hearts, spades, diamonds, clubs }; c) enum Suit {hearts, spades, diamonds, clubs } d) enumerated type Suit = {hearts, spades, diamonds, clubs }; e) enum Suit = { hearts, spades, diamonds, clubs }

Computer Science & Information Technology

A(n)____________________ is a collection that is ordered using two ordering rules

a) priority queue b) interface c) exception d) stack e) none of the above

Computer Science & Information Technology

The arrow in the accompanying figure points to the XML Schema ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A ____ is similar to a repeater, except it broadcasts data received by any port to all other ports on the device.

A. hub B. switch C. router D. flipper

Computer Science & Information Technology