{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Ch03FocusClassesA - • Data types Inplementing(coding •...

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

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

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

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

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

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

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

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

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

View Full Document Right Arrow Icon
Algorithms Private Encapsulate Dollars? Cents? Yen? …
Image of page 8
Data to keep, share Instance variables
Image of page 9

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

View Full Document Right Arrow Icon
Image of page 10
Image of page 11

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

View Full Document Right Arrow Icon
Image of page 12
Image of page 13

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

View Full Document Right Arrow Icon
Image of page 14
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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern