- It Is Required To Develop An Application In Java To Perform Some Operations Of A Bank The Application Will Have The Fol 1 (88.34 KiB) Viewed 21 times
It is required to develop an application in Java to perform some operations of a bank. The application will have the fol
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
It is required to develop an application in Java to perform some operations of a bank. The application will have the fol
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) (ii) (iii) Constructor having 2 parameters to initialize all data fields, Set and get methods for all data fields, The toString method to return String equivalent of all data fields, (B) Class called Personinformation that inherit the properties of class Person having following additional data field: incrementpercentage(double) and following methods: Constructor having 3 parameters for all data fields including that of class Person. Set and get methods for incrementpercentage. 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: (i) (ii) (iii) 1- Object of type Personinformation. 2- The updateSalary in class Personinformation. 3- The toString in class Personinformation. m