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

1. A constructor is a special kind of member function. It is automatically called when
an object of that class is declared.
2. A constructor is always named construct with class name attached. If the class is
Foo, then the constructor name is constructFoo.
3. A constructor is like a function. It can return any type value needed.
4. A constructor usually terminates by falling off the end of its block, but a return
statement is permitted if there is no argument add following the word return..
5. You can write a class that is useful with all its constructors in the private section.


1. True
2. False
3. False.
4. True
5. False

Computer Science & Information Technology

You might also like to view...

Which of the following is not a valid Java identifier?

a) answer_7 b) highest$ c) anExtremelyLongIdentifierIfYouAskMe d) 2ndlevel e) thirdNumber

Computer Science & Information Technology

The latest Web sites are often a collection of hyperlinks to other resources on the World Wide Web.

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

Computer Science & Information Technology

Which of the following is a private combination of characters associated with a user name that allows access to certain computer resources?

A. folder B. password C. user name D. cipher

Computer Science & Information Technology

____ feasibility considers analysis of the existing technology or operational procedures that new technology must interact with.

A. Economic B. Operational C. Technological D. Timeline

Computer Science & Information Technology