The figure illustrates a conceptual view of a class, Employee
, with the attributes, id
, which is declared as private
, and lastName
, which is decalred as public
. The class also provides the methods, private getID()
and public setId(String anID)
. The figure also illustrates two instances of the Employee
class, one for the employee Smith with the id
, 215 63 2179
, and one for the employee Jones with the id
, 372 74 3215
.