Vexus

ReviewQ Chp 3

Oct 1st, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. R3.1- public. implementation is the data your objects can store.
  2. R3.2- Encapsulation is the packing of data and functions into a single component. The features of encapsulation are supported using classes in most object-oriented programming languages, although other alternatives also exist.
  3. R3.3- it's the specified object or variable that won't be shown publicly or in the console.
  4. R3.4- A+ = 100
  5. B = 80
  6. R3.5- public int AM = 9:00
  7. public double PM = 3:30
  8. R3.6- change the implentation so they can use it how they want to use it.
  9. R3.7- no, because you can simply set the value of a variable without using a mutator.
  10. R3.12- the method has the "this" reference which helps specify which variable within the method to use. The method states that the one BankAccount method is equal to balance - amount, while the other is equal to balance + amount.
  11. R3.14- public int area;
  12. R3.18- harryschecking balance 2000
  13. harryschecking subtract 500
  14. harryschecking total 1500
Advertisement
Add Comment
Please, Sign In to add comment