You are viewing a single comment's thread from:
RE: SLC S22 Week1 || Getting Started with Java and Eclipse
For interest alone and something to consider…
In Task 3 (tax calculation), what could / would you do differently in anticipation of future tax changes? Perhaps the tax bounds or rates change?
I really like your creativity with section titles 😊
Thank you!
In anticipation for future tax changes I would probably have an abstract function that can take the tax as a parameter directly while being called, if it gets a value it uses it, otherwise it uses the default ones. Not 100% sure if the term is abstract function or it's named differently, I remember reading about these somewhere at one point. Or maybe the term is overloaded, I guess we might see this in one of @kouba01's lessons.