Answer:

A reference to the message is kept in one of the object's variables.

Improved Class

Here is what we have so far for HelloObject:

class HelloObject                                  
{                                                  
  void speak()                                     
  { 
    System.out.println("Hello from an object!");
  }
}

Here is a start on improving HelloObject:

class HelloObject                                  
{                                                  

   ;   // reference variable for the object's message

  void speak()                                     
  { 
    System.out.println(    );   // print the object's message
  }
}

QUESTION 16:

Modify the definition of HelloObject to include a String reference variable. Modify the speak() method so that it uses that variable.