Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the classes Person and EmployeeRecord, given below. Rewrite any methods that have data leaks with the leaks fix. public class person {(private String first

image text in transcribed
Consider the classes Person and EmployeeRecord, given below. Rewrite any methods that have data leaks with the leaks fix. public class person {(private String first Name; private String lastName; public Person(String fNane, String lName) {setName(fName, lName);} public void setName(String fName, String lName) {this.firstName = fName; this.lastName = lName; public String getFirstName() {return firstName;} public String getLastName() {return laatName;} public EmployeeRecord {private Person employee; private int employeeID; public EmployeeRecord (person e, int ID) {this.employee = e; employeeID = ID; public void setInfo (person e, int ID) {this.employee = e; employeeID = ID; public Person getEmployee() {return employee;} public int getID() {return employeeID;}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

What is the relationship between diversity, inclusion, and equity?

Answered: 1 week ago