1. Computing & Technology

Discuss in my forum

Object-Oriented Programming

By , About.com Guide

Understanding object-oriented programming is essential for any Java programmer. The following articles outline the fundamental concepts of object-oriented programming and how they can be applied using Java. Most sections start with an article that outlines a particular concept without the use of Java code. They are then followed by tutorials that put the theory into practice.

What Is Object-Oriented Programming?

Start by learning the key concepts of object-oriented programming before you start designing and building objects with Java:

Enforcing Data Encapsulation

Learn what data encapsulation is and why it's important to object-oriented programming. Through the use of constructor, accessors and mutators methods find out how you can enforce data encapsulation in the objects you design:

Using the Static Modifier

There are times when it's useful to have values that are shared amongst all instances of an object type. Use of the static modifier allows this to happen:

What Is Inheritance?

Creating relationships between objects that have similar characteristics can be a powerful tool in object-oriented programming. Learn how to spot which objects are best suited for inheritance and how these relationships can be created or prevented in Java:

©2012 About.com. All rights reserved.

A part of The New York Times Company.