It is required to develop an application in Java to perform some operations of a bank. The application will have the fol
Posted: Sun Jul 03, 2022 10:00 am
It is required to develop an application in Java to perform some operations of a bank. The application will have the following classes: (A) Class called Person having following data fields (private): firstName (String), salary (float) and following methods: (i) Constructor having 2 parameters to initialize all data fields, (ii) Set and get methods for all data fields, (iii) The toString method to return String equivalent of all data fields, (B) Class called Person Information that inherit the properties of class Person having following additional data field: incrementpercentage(double) and following methods: (i) Constructor having 3 parameters for all data fields including that of class Person. (ii) Set and get methods for incrementpercentage. (iii) Implementation of method updateSalary (to increment the salary by the increment percentage). (iv) The toString method to return String equivalent of all data fields. (C) Write a class called PersonReport having main method to test the application. In main method create following: 1- Object of type Person Information. 2- The updateSalary in class PersonInformation. 3- The toString in class PersonInformation.