The 3 Main Principles of Object Oriented Programming – How to Program With Java

Object Oriented Programming (or OOP) is actually classified by three main principles. 1) Encapsulation 2) Inheritance 3) Polymorphism These appear to be frightening terms but are actually fairly easy principles to grasp. In order to figure out how to program with java, you’ll need to understand these principles. So let’s consider our first main concept of OOP, encapsulation. Encapsulation just means we want to limit the access that some other pieces of code have to this particular object. So, to illustrate, if you have a Person object, and this Person object has a first and last name as attributes. In

Continue reading