DEV Community

Casey Echternacht
Casey Echternacht

Posted on

OOP; NOW I (kind of) get it

I followed a tutorial to build a rudimentary mortgage calculator. It has objects and methods, which makes it OOP, right?

Wrong

Method A calls method B which calls method C... etc; which is procedural programming. Apparently, typing lines of code into IntelliJ does not qualify as Object Oriented Programming.

This tutorial is having me refactor so that I have a single class dedicated to handling input, a separate class for doing math and a whole other class that handles displaying data.

My brain hurts. I'm going to spend an extra day with this tutorial. This puts me a day behind schedule, but I'm not moving on without solidifying this concept.

98

Top comments (0)