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

The Future of Object Oriented Programming

The object-oriented paradigm is based on the idea that objects exist independently of each other, and that operations can be executed on them. Consequently, a user in a true object-oriented development environment should be able to interactively create objects of any available class, manipulate these objects and call their interface routines.ยท Platform independence – “Write once – run anywhere” capability As a matter of fact you cannot run a java program ‘anywhere’ unless there is a virtual machine. But its as good as anywhere. Also I know some folks who would say its “write once debug everywhere” but any such

Continue reading