The document defines an Employee class with attributes for name, age, and salary, along with methods to display employee information and increase salary. It includes two constructors: one that accepts all parameters and another that sets a default salary. The Main class demonstrates creating Employee objects and invoking their methods.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views2 pages
Program On This Keyword
The document defines an Employee class with attributes for name, age, and salary, along with methods to display employee information and increase salary. It includes two constructors: one that accepts all parameters and another that sets a default salary. The Main class demonstrates creating Employee objects and invoking their methods.