Chapter 4. Objects and Classes

   

Core Java™ 2: Volume I - Fundamentals
By Cay S. Horstmann, Gary Cornell
Table of Contents


  • INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING

  • USING EXISTING CLASSES

  • BUILDING YOUR OWN CLASSES

  • STATIC FIELDS AND METHODS

  • METHOD PARAMETERS

  • OBJECT CONSTRUCTION

  • PACKAGES

  • DOCUMENTATION COMMENTS

  • CLASS DESIGN HINTS

This chapter will:

  • Introduce you to object-oriented programming;

  • Show you how you can create objects that belong to classes in the standard Java library;

  • Show you how to write your own classes.

If you do not have a background in object-oriented programming, you will want to read this chapter carefully. Object-oriented programming requires a different way of thinking than for procedure-oriented languages. The transition is not always easy, but you do need some familiarity with object concepts to go further with Java.

For experienced C++ programmers, this chapter, like the previous chapter, will present familiar information; however, there are enough differences between the two languages that you should read the later sections of this chapter carefully. You'll find the C++ notes helpful for making the transition.


       
    Top
     



    Core Java 2(c) Volume I - Fundamentals
    Building on Your AIX Investment: Moving Forward with IBM eServer pSeries in an On Demand World (MaxFacts Guidebook series)
    ISBN: 193164408X
    EAN: 2147483647
    Year: 2003
    Pages: 110
    Authors: Jim Hoskins

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net