Java Objects Intro

528 views

Published on

Published in: Business, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
528
On SlideShare
0
From Embeds
0
Number of Embeds
28
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Java Objects Intro

  1. 1. Programming Java Objects and Classes Introduction Colm Bennett
  2. 2. Programming – The History <ul><li>Traditional programming was procedural </li></ul><ul><li>Code started at the start and ran through a set task </li></ul><ul><li>Structured coding was added to create “modules” of code that performed a particular part of the overall task </li></ul><ul><li>Various problems with procedural code </li></ul>
  3. 3. Issues with Procedural Code <ul><li>Doesn't lend itself to reuse </li></ul><ul><li>Over time, adding new features can lead to spaghetti code </li></ul><ul><li>Focus is on code instructions rather than the data structures that will be manipulated </li></ul>
  4. 4. Move towards Oop <ul><li>Led by major issues with large software projects </li></ul><ul><li>Move towards modularising code </li></ul><ul><ul><li>Attempt to increase reuse </li></ul></ul><ul><ul><li>Hides internal implementation </li></ul></ul><ul><ul><li>Other modules should interact with it through a defined interface </li></ul></ul><ul><li>This approach was successful and led to a fuller framework - Oop </li></ul>
  5. 5. Oop <ul><li>Object Orientated Programming </li></ul><ul><li>Focuses on real world modeling </li></ul><ul><li>Sees a problem in terms of “objects” </li></ul><ul><li>An Object is an entity that has code and data internally and responds to messages </li></ul>
  6. 6. Formal Object Features <ul><li>Wikipedia! </li></ul><ul><li>http://en.wikipedia.org/wiki/Object-oriented_programming </li></ul>
  7. 7. Objects in Java <ul><li>Over to general introduction ... </li></ul><ul><li>http://chortle.ccsu.edu/CS151/Notes/chap25/ </li></ul>

×