A school result processing system is developed using classes such as Student,…
A school result processing system is developed using classes such as Student, Exam, and ResultProcessor. The system initially works correctly. However, after a few months, a new developer modifies the generateResult() method in ResultProcessor.
After modification, the system starts producing incorrect grades for certain students. On investigation, it is found that the developer misunderstood the purpose of some methods and reused them incorrectly due to lack of proper documentation.
Determine the underlying reason for this unexpected behavior. Justify how poor documentation and implementation strategy contributed to the issue, and explain the correct approach using OOP principles.
Sign up free to check your answer
Sign up freeLoading lesson…

