Object-Oriented Programming has gained momentum mostly because of the rise in Graphical User Interfaces. While procedural languages might be able to create a GUI, it’s not as easy to separate the programmer from functions and data structures they don’t need to know about.
Object-Oriented programming attempts to isolate and group related code by wrapping it into an Object. Objects can have variables as well as methods that can manipulate those variables. By specifying the ways data can be interacted with you can be sure the integrity of that data cannot be compromised, this wrapping or bundling into an Object also promotes code reuse.
In this tutorial we will walk through the creation of a BlackJack program from design through to completion. Along the way you will hopefully gain a better understanding of Object-Oriented programming concepts.