Which of the following is the best definition of a constructor?
A. a way to initialize a mutator
B. a way to initialize a list
C. a way to initialize a method
D. a way to initialize a field
Answer:D
Which of the following is the best definition of a constructor?
A. a way to initialize a mutator B. a way to initialize a list C. a way to initialize a method D. a way to initialize a field