Getting ready

We will turn our entire procedural code into OOP very simply. We just turn it into a class, indent all the existing code, and prepend self to all variables.

It is very easy.

While at first it might feel a little bit annoying having to prepend everything with the self keyword making our code more verbose (hey, we are wasting so much paper…), in the end it is worth it.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.30.62