Changes between Initial Version and Version 1 of IntroductionOOP


Ignore:
Timestamp:
Jan 27, 2015, 8:34:15 PM (10 years ago)
Author:
Timothy Lin
Comment:

started introduction to OOP page

Legend:

Unmodified
Added
Removed
Modified
  • IntroductionOOP

    v1 v1  
     1= Introduction to Object-Oriented Programming
     2In 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:
     3
     4In Java, an OOP language:
     5{{{
     6#!java
     7...
     8Object someObj = new Object();
     9
     10someObj.changeSomething();
     11...
     12}}}
     13
     14And in C, an imperative language (no OOP):
     15{{{
     16#!java
     17ProcessData(someData);
     18}}}
     19
     20So what is an object?
     21
     22== Objects & Classes
     23A 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:
     24- Class
     25- !StudentSchedule
     26- !TeacherSchedule
     27- Student
     28- Scheduler
     29
     30