{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

chapter3 - Chapter 3 Implementing Classes Introduction In...

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

View Full Document Right Arrow Icon
Chapter 3 – Implementing Classes
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
Introduction In the previous chapter, we saw how to use objects – Declare an object Book aBook; – Create an object aBook = new Book(“Beloved”,“Toni Morrison”); – Call methods on an object aBook.getAuthor();
Image of page 2
Introduction Remember our goal is to write programs that accomplish something useful – How do objects fit in? • Encapsulation • Efficiency – We can also make our own types of objects…
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