0% found this document useful (0 votes)
3 views12 pages

1Week

The document provides an overview of the COM 244 Object Oriented Programming course, focusing on the principles of object-oriented design (OOD) using Java. It outlines the software development process, the role of objects in modeling real-world problems, and the architecture of Java as a hybrid programming language. Key topics include the importance of design, the active role of data, and the features of Java that support OOD.

Uploaded by

rumeysacelikk7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views12 pages

1Week

The document provides an overview of the COM 244 Object Oriented Programming course, focusing on the principles of object-oriented design (OOD) using Java. It outlines the software development process, the role of objects in modeling real-world problems, and the architecture of Java as a hybrid programming language. Key topics include the importance of design, the active role of data, and the features of Java that support OOD.

Uploaded by

rumeysacelikk7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 12

COM 244

Object Oriented Programming

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.

• These slides contain material with respect to the COM244 course.

• The main topic in this course is OOP.

• Wewill study on general principles of OOP which can be applied to


any programming language.

• Courseexamples and works will be implemented via Java


programs.

2
Summary

•Software Development has four main steps:


–Analysis of the problem
–Design a solution for the problem
–Implementation of the design
–Maintenance

Object Oriented (OO) helps to perform these steps


easier.
UML is a modelling tools used to help development of
OO designs.

3
Design is crucial !!!!

http://www.baddesigns.com/

4
Object Oriented Approach
(OOA)

• Conventional software development methodologies


• Employ functions as the key building blocks
• Data is in a passive role

• For OOD
• Data has an active role,
• Data has its own functions, called as methods in OOD

• Data and its methods form an object

5
What is Objects ?

• OODemploys to Objects to
model the real world

• Realworld can be defined with


objects

• Each object has states


Off Balance = 500 TL

• 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

• Smalltalk, C++, Objective


Pascal, C#, Java, Ada, Objective
Python …
• Java,developed at Sun
Microsystems (now merged
into Oracle) was released in
1995.
•6 main principles in its design
• syntax resembles C++
• simple, object-oriented
• robust and safe
• architecture-neutral and
portable
• interpreted,
• support multi-threading

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

• Java combines both the


Source
Code approaches of compilation and
interpretation. As shown, Java
compiler compiles the source code
and convert it into bytecode. In
Java run time, Java Virtual Machine
Compiler (JVM) interprets this bytecode and
generates machine code which will
be directly executed by the
machine in which java program
runs. Hence java is accepted both
Byte Code a compiled and interpreted
programming language. Accordinly
it called as a hybrid language

Java Virtual Operating


Machine System

10
Java Architecture
Source
Code

Java Run Time Environment

Java Network or
Class Loader
Compiler File System

Byte Code
Checker
Byte Code

Just in
Java Virtual
Time
Machine
Compiler
Java Virtual
Machine

Operating System (OS)

11
Details of Java Architecture

- Java Runtime Environment contains JVM, class libraries


and
other supporting components.

-Class loader loads all the class files required to


execute the
program.

-The bytecode verifier verifies the byte code to see if


any security problems are there in the code.

- (JIT) compiler helps the program execution to happen


faster.
12

12

You might also like