... social security number to superclass Employee
’s constructor (line 12) to initialize Employee
’s private
instance variables. Method toString
calls superclass method toString
(line 62) to obtain the Employee
-specific information (i.e., first name, last name and social security number).
Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.