Answer the following questions 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.


1. True
Explanation: The purpose of a constructor is to automatically do any needed initialization.
2. False
Explanation. The name of the constructor is just the name of the class.

Computer Science & Information Technology

You might also like to view...

If randomness is needed to enhance security in generating a message digest, a key can be used as part of the message digest generation. This key using algorithm is known as a(n) ____.

A. HCRC B. MD C. MAC D. CRC

Computer Science & Information Technology

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

1) By default, instance variables are not initialized. 2) Instance variables are required to be explicitly initialized before they’re used in a program. 3) Making a class’s instance variables public and its methods private and accessing those instance variables only through the class’s methods and properties facilitates debugging, because problems with data manipulations are localized to the methods (and properties). 4) An attempt by a method that’s not a member of a particular class to access a private member of that class is a runtime error.

Computer Science & Information Technology

The open-space property defines how browsers should handle white space in the rendered document.

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

Computer Science & Information Technology

Twitter is a common ________ application

A) online journal B) blog C) podcast D) microblog

Computer Science & Information Technology