☑Kizspy.me
Zoom
Professor
-department: String
+Professor(id:int, name: String,
standardSalary: double,
department:String)
+getDepartment ():String
+calculateActualSalary(): double
+toString():String
Where:
• Professor()-default constructor
•
Professor(id:int, name: String, standardSalary:
double, department:String) - parameterized
constructor, which sets the value to the id,
name, standardSalary and department of the
Professor.
• getDepartment (): String-return the department
of the Professor in uppercase.

calculateActual Salary(): double - returns the
actual salary of the Professor according to the
4 of 5
Paper No: 1
+ 100%
Close