ptg7068951
Summary 151
Summary
You now have completed two of the three hours devoted to object-oriented
concepts in this book. You’ve learned how to create an object, give behav-
ior and attributes to the object and its class of objects, and convert objects
and variables into other forms by using casting.
Thinking in terms of objects is one of the tougher challenges of the Java
programming language. When you start to understand it, however, you
realize that the entire language makes use of objects and classes.
During the next hour, you learn how to give your objects parents and
children.
FIGURE 11.1
The output of the VirusLab
program.