110CT: Lecture 17 Portfolio Questions 2007-8
|
|
17.1: DoME-v1 project
Create a CD and a database object. Enter the CD into the database. List the database. You see that the CD has no associated comment. Add a comment to the CD object on the object bench (the one entered into the database). When you now list the database again, will the CD listed there have a comment attached? Try it. Explain the behaviour you observe.
(Based on Barnes & Kolling ex 8.2)
17.2: DoME-v2 project
Set a breakpoint in the first line of the CD class' constructor. Then create a CD object. When the debugger window pops up, use StepInto to step through the code. Observe the instance fields and their initialisation. Describe your observations.
(Based on Barnes & Kolling ex 8.6)
|
Index | Previous | No more
Last modified: 18 March 2008
Webpage: © Lisa Payne, Coventry University, 2006-8
Most exercises and projects: © Barnes and Kolling