IT 114: Introduction to Java
Answers to Class 26 Ungraded Quiz

  1. What do you call the special method used to create an object of a class?
    a constructor
  2. What do you call the variables in an object that can be accessed by any method in the class?
    fields
  3. What do you call methods that only work with the values contained in the object?
    instance methods
  4. Does every class have to have a constructor?
    no
  5. Can an instance method have the void return type?
    yes