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
Math,
2 months ago
Computer Science,
2 months ago
India Languages,
2 months ago
Math,
4 months ago
Physics,
4 months ago
English,
10 months ago
Physics,
10 months ago
Physics,
10 months ago