Trane Technologies interview question

real time example of using oops