1Week
1Week
Some parts of those slides are adapted on course materials by Stuart Reges
http://www.cs.washington.edu/331/
Summary
• Theseslides contain material about basis of object oriented
programming languages based on Java Programming Languages.
2
Summary
3
Design is crucial !!!!
http://www.baddesigns.com/
4
Object Oriented Approach
(OOA)
• For OOD
• Data has an active role,
• Data has its own functions, called as methods in OOD
5
What is Objects ?
• OODemploys to Objects to
model the real world
• They
have specific ways to be
employed
Turn on Withdraw = 300 TL
6
Object Oriented Design
• Consists of
• Identifying objects modelling the real life problem
• Assign behaviors and responsibilities to those objects
• Determine interaction between objects
• Good designs should be clear to define the problem and
simple to be understood
• It should be easy to develop and maintain
• Objectscan be implemented and debugged independently
• The code and libraries should be reuasable
2012 7
7
JAVA
• There
are many languages
support OOD
8
History of Java
• Java
• Based on C++
• Originally developed in early 1991 for intelligent
• electronic devices
• Market did not develop, project in danger of being cancelled
• Internet exploded in 1993, saved project
• Used Java to create web pages with dynamic content
• Java formally announced in mid 1995
• Since then used to create web pages with interactive
content, enhance web servers, applications for consumer
devices (pagers, mobile devices)...
• It is free and most preferred programming language
9
Java Architecture
10
Java Architecture
Source
Code
Java Network or
Class Loader
Compiler File System
Byte Code
Checker
Byte Code
Just in
Java Virtual
Time
Machine
Compiler
Java Virtual
Machine
11
Details of Java Architecture
12