Answer the following statements true (T) or false (F)
1. Constructors are implemented as Sub methods because they cannot return values.
2. You should not take into consideration that your code will be modified.
3. Variables declared within class methods are called instance variables.
4. The purpose of utility methods is to support the operation of a class’s other methods.
5. A constructor should return either True or False to determine if the object was initialized
properly.
1. True.
2. False. You should always anticipate that your code will be modified.
3. False. Instance variables are variables declared within a class definition, but not within a method
definition. Variables declared within class methods are local variables.
4.True.
5. False. A constructor may not return a value; attempting to do so is a syntax error.
You might also like to view...
The term service pack usually applies to operating system updates.
Answer the following statement true (T) or false (F)
The operation P in a semaphore scheme requires a(n) ____ sequence to be performed as an indivisible action in a single machine cycle.
A. test, fetch, increment, and store B. test, fetch, decrement, and store C. increment and store D. decrement and store