Chapter 4: Multiple Classes

"There are too many people and too few human beings."
—Robert Zend    

Introduction

In order to truly understand object-oriented programming, we must define our own classes and derive objects from them. In the previous chapter you created objects from a variety of string-related classes, accessing their methods and attributes. In this chapter you will learn the fundamentals of making your own classes, using inheritance and interfaces, and you will learn about the structure of classes in the Java language.

Note 

If you are not sure about classes in general, you may want to refresh your memory by returning to the beginning of Chapter 2 where we discussed some important aspects of classes in relation to their members and constructors and objects in general.



Java 1.4 Game Programming
Java 1.4 Game Programming (Wordware Game and Graphics Library)
ISBN: 1556229631
EAN: 2147483647
Year: 2003
Pages: 237

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