Class Date
8.7
Date Class declaration
·
Source
Code
8.8
Employee class with references to other objects
·
Source
Code
8.9
Composition demonstration
·
Source
Code
·
Output
8.10
Declaring an enum type with constructor and explicit instance fields and
accessors for these fields. (Part 1 of 2.)
·
Source
Code
8.11
Testing an enum type. (Part 1 of 2.)
·
Source
Code
·
Output
8.12
Static variable used to maintain a count of the number of Employee objects in
memory
·
Source
Code
8.13
Static member demonstration. (Part 1 of 2.)
·
Source
Code
·
Output
Komentar
Posting Komentar