A hospital management system is being developed to handle patient admissions…

A hospital management system is being developed to handle patient admissions and treatments. During implementation, developers create a class named Patient that stores attributes such as patientName, disease, doctorAssigned, treatmentDetails, and billAmount.

After deployment, the system starts showing inconsistent behavior: whenever treatment details are updated, billing values are unintentionally overwritten, and multiple patients seem to share similar treatment records.

Determine the underlying reason for this unexpected behavior. Justify how improper object identification and representation have affected the system design, and explain the correct approach.

Sign up free to check your answer

Sign up free

Explore the full course: Up Lt Grade Assistant Teacher 2025

Loading lesson…