Java_PPT_ch03-2
Java_PPT_ch03-2
Extend
Use as a basis for any other class
Data fields
Variables declared within class
But outside of any method
Character fields
Set to Unicode ‘\u0000’
Boolean fields
Set to false
Method
Series of statements that carry out a task
Declaration includes parameter type and local name
for parameter
Can pass multiple arguments to methods
Has return type
Class objects
Have attributes and methods associated with them
Instantiate objects that are members of class
Constructor
Method establishes object and provides specific initial
values for object’s data fields
Everything is an object
Every object is a member of a more general class
Implementation hiding, or encapsulation
private data fields
public access methods