Can't add a method to a class you don't own? Use a Foreign Method! - Create the method in YOUR code - Pass the utility object as parameter Example (JS): function formatWithTimezone(date) { return StringUtils.format(date) + " UTC"; } #ProgrammingTips #CodeRefactoring
0
0
1
7
0