java objects intro

Download Java  Objects  Intro

If you can't read please download the document

Upload: colmbennett

Post on 16-Apr-2017

525 views

Category:

Business


0 download

TRANSCRIPT

Programming

Java Objects and Classes Introduction

Colm Bennett

Programming The History

Traditional programming was procedural

Code started at the start and ran through a set task

Structured coding was added to create modules of code that performed a particular part of the overall task

Various problems with procedural code

Issues with Procedural Code

Doesn't lend itself to reuse

Over time, adding new features can lead to spaghetti code

Focus is on code instructions rather than the data structures that will be manipulated

Move towards Oop

Led by major issues with large software projects

Move towards modularising code

Attempt to increase reuse

Hides internal implementation

Other modules should interact with it through a defined interface

This approach was successful and led to a fuller framework - Oop

Oop

Object Orientated Programming

Focuses on real world modeling

Sees a problem in terms of objects

An Object is an entity that has code and data internally and responds to messages

Formal Object Features

Wikipedia!

http://en.wikipedia.org/wiki/Object-oriented_programming

Objects in Java

Over to general introduction ...

http://chortle.ccsu.edu/CS151/Notes/chap25/

Click to edit the title text format