Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 1. Object Oriented Programming > Objects and Functions

1.4. Objects and Functions

We’ve made some classes to represent our various courier companies, and seen how to instantiate objects from class definitions. We’ll now look at how we identify objects and pass them into object methods.

First, we need a target object, so let’s create a Parcel class:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial