Chapter 6: Intro to OOP
The following pages have the complete source code and examples
from Chapter 6, Intro to OOP, from the Java Developer's Resource.
This chapter begins your introduction to classes and objects in Java.
Here you learn the about abstract data typing through classes, objects and methods. Abstract data typing produces code that is much easier to read, understand and maintain.
In this chapter you learn
- A brief history of programming
- What a class is, what an object is, and the difference between them
- What a member variable is, what a local variable is, and the difference between them
- What a method is
- How to passing arguments to methods
- How to return values from methods
- Constructors
- toString methods
- Access control with public and private
- Static methods and fields
Examples from Other Chapters
[ Cafe Au Lait | Books | Trade Shows | Links | FAQ | Tutorial | User Groups ]
Copyright 1996 Elliotte Rusty Harold
elharo@sunsite.unc.edu
Last Modified July 22, 1996