Object Oriented Programming: A Layman’s Introduction
Posted in Programming languages, Tutorials on September 22nd, 2010 by Ian – Be the first to comment
What is an object??
Object Oriented Programming is a programming archetype that makes explicit use of “objects”, which are nothing but instances of a class that comprises functions and data structures and other elements. Hence, objects are used to instantiate a general class. For example, we may have a Dog class, of which say Tom is an object. Now it is each of these instances or objects that have two properties, a “state” and its own “attributes”. The attributes clearly talk of properties that help us identify the object, that is, information that helps beyond our obvious knowledge of knowing that Tom is a dog. Hence, Tom has all the attributes of a dog as it belongs to that class but may also have additional attributes, for example, he may be brown or black or white. The term state means the current condition the object is in. It may be running or sleeping or eating or any other state.
read more »




