Thursday, February 25, 2016

Introduction to Object-Oriented Programming

Java is designed around the principles of object-oriented programming. To truly master Java you must understand the theory behind objects. This article is an introduction to object-oriented programming outlining what objects are, their state and behaviors and how they combine to enforce data encapsulation.

What Is Object-Oriented Programming?

To put it simply, object-oriented programming focuses on data before anything else.
How data is modeled and manipulated through the use of objects is fundamental to any object-oriented program.

What Are Objects?

If you look around you, you will see objects everywhere. Perhaps right now you are drinking coffee. The coffee mug is an object, the coffee inside the mug is an object, even the coaster it's sitting on is one too.
Object-oriented programming realizes that if we're building an application it's likely that we will be trying to represent the real world. This can be done by using objects.
Let's look at an example. Imagine you want to build a Java application to keep track of all your books. The first thing to consider in object-oriented programming is the data the application will be dealing with. What will the data be about? Books.

Further more:

  1. JAVA TRAINING IN KATHMANDU
  2. JAVA TRAINING IN LALITPUR



No comments:

Post a Comment