CSE 131 / 501N (Fall 2013)
Recitation Questions

Review the studio design problems with an eye toward answering the following questions.
  1. When you hear has-a in a story that describes an object, what is your response in designing a suitable object from that story?
  2. What is a constructor and how do you recognize one in a class file?
  3. How do you instantiate an object?
  4. What is the relationship between an instantiation request and the constructors offered by a class?
  5. How do you provision methods for an object based on behaviors the object is supposed to offer?
  6. Consider the code below:
      Account a1 = new Account(100);
      Account a2 = new Account(50);
      Account a3 = a1;