Java Reference
In-Depth Information
Introduction to Classes,
Objects, Methods and
Strings
3
Your public servants serve you
right.
—Adlai E. Stevenson
Nothing can have value without
being an object of utility.
—Karl Marx
Objectives
In this chapter you'll learn:
How to declare a class and
use it to create an object.
How to implement a class's
behaviors as methods.
How to implement a class's
attributes as instance
variables.
How to call an object's
methods to make them
perform their tasks.
What local variables of a
method are and how they
differ from instance variables.
What primitive types and
reference types are.
How to use a constructor to
initialize an object's data.
How to represent and use
numbers containing decimal
points.
 
 
Search WWH ::




Custom Search