wiki:IntroductionOOP

Introduction to Object-Oriented Programming

In OOP programming languages, the design is heavily data-based; that is, they are focused on the use of information. In more functional style languages, the focus is more on behaviors and the ability to modify data. This difference is best seen by how the method by which data is changed:

In Java, an OOP language:

...
Object someObj = new Object();

someObj.changeSomething();
...

And in C, an imperative language (no OOP):

...
ProcessData(someData);
...

So what is an object?

Objects & Classes

A class in Java is a code representation of a physical (or comprehensible) object in real life. For example, a project that manages your school schedule might have the following classes:

  • Class
  • StudentSchedule
  • TeacherSchedule
  • Student
  • Scheduler
Last modified 6 years ago Last modified on Jan 27, 2015, 8:34:45 PM