OOP Chapter 1
OOP Chapter 1
OOP Chapter 1
By Abdu A.
Programming paradigm
Programming Paradigm is a way of conceptualizing what it means to
perform computation and how tasks to be carried out are organized on a
computer.
Two common approaches are Structured and Object Oriented
Structured Programming
Problem solving would involve the analysis of processes in terms of the
procedural tasks carried out and the production of a system whose representation
is based on the procedural flow of the processes.
Procedures typically operate on data items that are separate from the procedures.
programmer is responsible for organizing everything in to logical units of
code/data
A procedural program is divided into functions, and (ideally, at least) each
function has a clearly defined purpose & a clearly defined interface to the other
functions in the program.
Other
objects
Methods
(behaviors / procedures)
James Gosling and his team members were consuming a lot of coffee supplied from
a place called “Java Island’.
Hence they fixed the name of the language as Java.
The symbol for Java language is cup and saucer.
a d b y
Is re
e d by
nt er p re t
Is i
Java Results in Program
Virtual Execution
Machine
24 10/7/22
DaDU CoET Dept of Computer Science
Your First Java Program
Open your text-editor and type the following piece of Java code
exactly:
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
Result