Docsity

CS 110 Daily Assignment #8: Understanding SCOPE and SHADOWING in UML - Prof. Sarah Abdul-W, Assignments of Computer Science

Partial preview of the text

Download CS 110 Daily Assignment #8: Understanding SCOPE and SHADOWING in UML - Prof. Sarah Abdul-W and more Assignments Computer Science in PDF only on Docsity!

CS 110 Daily Assignment # Due Tuesday 21 April 2009 Read page 144 โ€“ 162 What is meant by the term SCOPE? What is meant by the term SHADOWING? Study the BankAccount UML on page 144

  1. How would you instantiate a BankAccount object with a starting balance of $150 and a starting interest rate of 4.5% (this is equivalent to 0.045)?
  2. How would you deposit $75.60 in this account?