Ch03FocusClassesA - Data types Inplementing (coding)...

Info iconThis preview shows pages 1–15. Sign up to view the full content.

View Full Document Right Arrow Icon
Focus on Classes Ch. 3
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
What about Ch. 2 Read Variable Assignment operator: = Method Constructor method Parameter Return value Overload
Background image of page 2
Number types Doubles Integers Operators Arithmetic Assignment
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Chapter 3 Blackbox Like a light bulb Object Class = design for light bulb
Background image of page 4
BankAccount STUDY this example ***************** Already understand rules Can focus on Java & OOP
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Public interface What other users (programmers) can count on Example: BankAccount Withdraw Deposit getBalance Transfer overDraftFee overDraftProtection
Background image of page 6
Javadoc comments /** What’s this do @parameter name … @return */ Do these now (p. 74) *********
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Algorithms Private Encapsulate Dollars? Cents? Yen? …
Background image of page 8
Data to keep, share Instance variables
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 10
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 12
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 14
Background image of page 15
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Data types Inplementing (coding) Constructors Other Methods Assignment statements Operators for primitives ~ Cryptic methods Implementing Parameters Return value Return statement Test Driver p. 83 Construct 1+ instances of the class Invoke methods Print results Variables Instance variables Specific to object Life: as long as object Local variables Specific to method Life: as long as method Parameter variables Similar to local variables Implicit parameter Whose balance is this? For Tuesday Email Asgn. 1 tonight Study Ch. 3 Bring Asgn. 1 hardcopy Review Ch. 2 Read Asgn. 2...
View Full Document

Page1 / 15

Ch03FocusClassesA - Data types Inplementing (coding)...

This preview shows document pages 1 - 15. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online