| ||||||
| ||||||

Initialization1. Which operator is used to allocate memory for an instance of a class, as well as to pass arguments to a constructor of that class? new 2.
True or false: when an object is allocated, all fields are set to a default value determined by
their type.delete alloc malloc True 3.
Each field of a class can have a "variable initializer"; that is, an
initial value given at the point the field is defined. At what point
during the initialization of an object is the variable initializer
executed?False Immediately after the object is created 4.
True or false: constructors may be overloaded.After the default field value is assigned but before the constructor After the constructor has completed True 5.
True or false: one constructor can call another constructor in the same class.False True False This material is excerpted from the Programming C# course offered by DevelopMentor. |