Jump to content

Object Oriented with Java

From Wikiversity

There are many ways you can design and code systems. There are two common approaches in programming:

  • Procedural programming: where the program is composed of functions and modules that aim to do a task.
  • Object-Oriented Programming: "is a method of programming based on a hierarchy of classes, and well-defined and cooperating objects."[1] In OOP, the software objects is used to model real-life ones such as car, employee, DVD, etc. Some common O.O. Programming Languages are: C++ [2], Java [3], and Smalltalk [4].


This module aims to enable learners to write a software program from an object-oriented perspective. Object-Oriented programming paradigm is concerned with constructing software systems out of interacting units of software called objects. The way that objects do works is by sending messages to each other during the execution of the program. The most important motive behind Object-Oriented Programming trend is the resuability issue, where the produced code can be resued which saves effort, and time of prgramming and testing process.


"Programming in an object-oriented language is more than just learning new syntax rules; it requires a new way of thinking. The idea is not to concentrate primarily on the fundamenatls of procedural languages-data structures and algorithms-but instead to think in terms of the objects that will carry out the required tasks."[5]


Learners will know Object Oriented principles such as: objects, classes, inheritance, and polymorphism using Java language. In addition the module teaches array, and Collection Framework (Set, Map, and List), and reading from/writing to files.

The module uses BlueJ Environment to present its implemented projects.


The module consists of 12 units as below:

References

[edit | edit source]
  1. Object Oriented Programming[1].
  2. C++ Programming [2]
  3. Java Lecture Notes [3]
  4. Smalltalk Programming Language [4]
  5. M255 Unit 1. pp.5