Multiple Choice
Which of the following statements is false?
A) You cannot prevent client code from creating objects of a class.
B) One common use of a private constructor is sharing initialization code among a class's other constructors.
C) Another common use of private constructors is to force client code to use so-called "factory methods" to create objects.
D) A factory method is a public static method that creates and initializes an object of a specified type (possibly of the same class) , then returns a reference to it.
Correct Answer:

Verified
Correct Answer:
Verified
Q2: Non-abstract classes are called _.<br>A) real classes.<br>B)
Q3: Which of the following statements about abstract
Q4: Which keyword is used to specify that
Q5: It is a UML convention to denote
Q6: When a superclass variable refers to a
Q8: Which of the following statements is false?<br>A)
Q9: A(n)_class cannot be instantiated.<br>A) final.<br>B) concrete.<br>C) abstract.<br>D)
Q10: Which of the following is false?<br>A) You
Q11: Which of the following statements is false?<br>A)
Q12: Which of the following statements is false?<br>A)