Object-based syntax
All three programs use the object-based syntax template that I introduced in the lesson entitled Basic OOP program structure.
All of the new code in each program is contained in an instance function named doSomething.
Therefore, I will only discuss the code in the doSomething function for each program.
See Listing 9, Listing 10, and Listing 11 for the remainder of the code.