2.16. Define a class as :
class :
Employee
instance variables:
String name, double sal, String addr
methods:
Employee )
default constructor
Employee (String, double, String) parameterized constructor
void print)
Prints grade of the employee as :
if sal >=50000
*Α
if sal >=25,000 but less than 50,000 'B'
if sal >=15,000 but less than 25,000 'C'
if sal < 15,000 D'
Answers
Answered by
0
sorry sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry bro sorry
Attachments:
Similar questions