Which of the following statements is false?
a. If a class does not define constructors, the compiler provides a default constructor with no parameters.
b. If you declare a constructor for a class, the compiler will not create a default constructor for that class.
c. The UML models constructors in the third compartment of a class diagram.
d. To distinguish a constructor from a class’s operations, the UML places the word “constructor” between double quotes before the constructor’s name.
D
Computer Science & Information Technology
You might also like to view...
JPasswordField contains method to obtain the data entered.
a. getInput. b. getPassword. c. getText. d. getEcho.
Computer Science & Information Technology
The Exception class belongs to the package:
(a) java.io (b) java.util (c) java.lang (d) java.except
Computer Science & Information Technology