SlideShare a Scribd company logo
Structured Programming Language
vs
Object Oriented Programming Language
By
Sana Mateen
• C is
called a structured programming lang
uage because to solve a large
problem,
• C programming language divides the
problem into smaller
modules called functions or
procedures each of which handles a
particular responsibility.
• The program which solves the entire
problem is a collection of such
functions.
• structured programming can save
time and energy when writing small
and simple programs (Though Simple
program is quite relative to the
writer) that would essentially hold
into one page.
• Object-Oriented Programming
(OOP) is a programming language
model organized around objects
rather than “actions”.
• The leading languages based on
OOP are C++, Java, Python, C#,
Visual Basic etc…
• The first step in OOP is to identify
all the objects the programmer
wants to manipulate and how they
relate to each other.
• Once an object has been identified,
the role of the programmer is to
generalize it as a class of objects
and define the kind of data that it
contains and list of procedures that
manipulate it.
OOP Basics
• Object:In real world could be a desk,tv,bicycle etc.
• It share two characteristics state and behavior.
• An object stores its state in fields called variables and its behavior through
methods.
• Methods operate on an object internal state and serve as the primary
mechanism for object to object communication.
java introduction features and propertie
java introduction features and propertie
java introduction features and propertie
Encapsulation
• Encapsulation in java is a process of wrapping code and data
together into a single unit, for example capsule i.e. mixed of
several medicines.
• It is a technique of making the fields in a class private and
providing access to fields via public methods
Polymorphism
• It is the concept of object oriented programming.The ability of different
objects to respond, each in its own way, to identical messages is called
polymorphism.
• When one task is performed by different ways i.e. known as
polymorphism.
• poly mean many morph mean form.
Inheritance
• Inheritance in java is a mechanism in which one object acquires all the
properties and behaviors of parent object.
• The idea behind inheritance in java is that you can create new classes
that are built upon existing classes.
• When you inherit from an existing class, you can reuse methods and fields
of parent class, and you can add new methods and fields also.
• Inheritance represents the IS-A relationship, also known as parent-
child relationship.
Program
• An organized list of instructions that, when executed, causes the computer
to behave in a predetermined manner. Without programs, computers are
useless.
• A program is like a recipe. It contains a list of ingredients
(called variables) and a list of directions (called statements) that tell the
computer what to do with the variables. The variables can represent
numeric data, text, or graphical images.
• There are many programming languages --
C, C++, Pascal, BASIC, FORTRAN, COBOL, and LISP are just a few. These are
all high-level languages. One can also write programs in low-level
languages called assembly languages, although this is more difficult.
• Low-level languages are closer to the language used by a computer, while
high-level languages are closer to human languages.
• Eventually, every program must be translated into a machine
language that the computer can understand. This translation is performed
by compilers, interpreters, and assemblers.
• When you buy software, you normally buy an executable version of a
program. This means that the program is already in machine language -- it
has already been compiled and assembled and is ready to execute.
java introduction features and propertie
L 3.4
Java Class Hierarchy
 In Java, class “Object” is the base class to all other classes
 If we do not explicitly say extends in a new class definition, it
implicitly extends Object
 The tree of classes that extend from Object and all of its subclasses are
is called the class hierarchy
 All classes eventually lead back up to Object
 This will enable consistent access of objects of different classes.
java introduction features and propertie
Abstraction is the concept of exposing only the
required essential characteristics and behavior
with respect to a context.
Hiding of data is known as data abstraction. In
object oriented programming language this is
implemented automatically while writing the
code in the form of class and object.
Real Life Example of Abstraction in Java
Abstraction shows only important things to the
user and hides the internal details, for example,
when we ride a bike, we only know about how
to ride bikes but can not know about how it
work? And also we do not know the internal
functionality of a bike.

More Related Content

PPTX
Class and Objects in python programming.pptx
Rajtherock
 
PPTX
Oop.pptx
KalGetachew2
 
PPT
Share Unit 1- Basic concept of object-oriented-programming.ppt
hannahrroselin95
 
PPTX
Intro to object oriented programming.pptx
RafiaZafar19
 
PPTX
Untitled presentation about object oriented.pptx
janetvidyaanancys
 
PPTX
Principles of OOPs.pptx
LakshyaChauhan21
 
PPTX
Chapter1 introduction
Jeevan Acharya
 
PPT
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
sagarjsicg
 
Class and Objects in python programming.pptx
Rajtherock
 
Oop.pptx
KalGetachew2
 
Share Unit 1- Basic concept of object-oriented-programming.ppt
hannahrroselin95
 
Intro to object oriented programming.pptx
RafiaZafar19
 
Untitled presentation about object oriented.pptx
janetvidyaanancys
 
Principles of OOPs.pptx
LakshyaChauhan21
 
Chapter1 introduction
Jeevan Acharya
 
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
sagarjsicg
 

Similar to java introduction features and propertie (20)

PPT
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
PPT
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
DOCX
Unit1 jaava
mrecedu
 
PDF
Class notes(week 2) on basic concepts of oop-2
Kuntal Bhowmick
 
DOCX
Class notes(week 2) on basic concepts of oop-2
Kuntal Bhowmick
 
PDF
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
PPTX
Block_1_Unit- I.pdf bca learning for exam you
vosawe9128
 
PPTX
Object oriented programming 6 oop with c++
Vaibhav Khanna
 
PDF
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
PPTX
Object oriented programming
baabtra.com - No. 1 supplier of quality freshers
 
PDF
6_Object-oriented-using-java.pdf object oriented programming concepts
harinipradeep15
 
PPTX
SE-IT JAVA LAB OOP CONCEPT
nikshaikh786
 
PPTX
POP vs OOP Introduction
Hashni T
 
PPTX
130704798265658191
Tanzeel Ahmad
 
PPTX
Different paradigms for problem solving.pptx
iitjeesooraj
 
PPTX
Unit 2.pptx
SherinRappai
 
PPTX
Unit 2.pptx
SherinRappai1
 
PPTX
UNIT - 1 Java Fundamentals, Basics of java
VasimTamboli11
 
PPTX
Introduction to Software - Coder Forge - John Mulhall
John Mulhall
 
PPTX
INTRODUCTION TO JAVA
RAMALINGHAM KRISHNAMOORTHY
 
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
Unit1 jaava
mrecedu
 
Class notes(week 2) on basic concepts of oop-2
Kuntal Bhowmick
 
Class notes(week 2) on basic concepts of oop-2
Kuntal Bhowmick
 
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
Block_1_Unit- I.pdf bca learning for exam you
vosawe9128
 
Object oriented programming 6 oop with c++
Vaibhav Khanna
 
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
6_Object-oriented-using-java.pdf object oriented programming concepts
harinipradeep15
 
SE-IT JAVA LAB OOP CONCEPT
nikshaikh786
 
POP vs OOP Introduction
Hashni T
 
130704798265658191
Tanzeel Ahmad
 
Different paradigms for problem solving.pptx
iitjeesooraj
 
Unit 2.pptx
SherinRappai
 
Unit 2.pptx
SherinRappai1
 
UNIT - 1 Java Fundamentals, Basics of java
VasimTamboli11
 
Introduction to Software - Coder Forge - John Mulhall
John Mulhall
 
INTRODUCTION TO JAVA
RAMALINGHAM KRISHNAMOORTHY
 
Ad

More from SanaMateen7 (14)

PPTX
Software engineering concept reengineeri
SanaMateen7
 
PPTX
machine learning introduction notes foRr
SanaMateen7
 
PPTX
iot introduction notes internet of things
SanaMateen7
 
PDF
Lecture notes on the subject Osai important
SanaMateen7
 
PPT
data mining preprocessing notes and pptt
SanaMateen7
 
PPT
tcpip protocol compuetr networks notes.ppt
SanaMateen7
 
PPT
Chapter2.ppt
SanaMateen7
 
PPT
08-Switching.ppt
SanaMateen7
 
PPT
circuitswitch.ppt
SanaMateen7
 
PPT
ch2_v1.ppt
SanaMateen7
 
PPT
artificial-neural-networks-rev.ppt
SanaMateen7
 
PPTX
IOT ARDUINO UNO.pptx
SanaMateen7
 
PPT
intro.ppt
SanaMateen7
 
PPTX
IOT W1.pptx
SanaMateen7
 
Software engineering concept reengineeri
SanaMateen7
 
machine learning introduction notes foRr
SanaMateen7
 
iot introduction notes internet of things
SanaMateen7
 
Lecture notes on the subject Osai important
SanaMateen7
 
data mining preprocessing notes and pptt
SanaMateen7
 
tcpip protocol compuetr networks notes.ppt
SanaMateen7
 
Chapter2.ppt
SanaMateen7
 
08-Switching.ppt
SanaMateen7
 
circuitswitch.ppt
SanaMateen7
 
ch2_v1.ppt
SanaMateen7
 
artificial-neural-networks-rev.ppt
SanaMateen7
 
IOT ARDUINO UNO.pptx
SanaMateen7
 
intro.ppt
SanaMateen7
 
IOT W1.pptx
SanaMateen7
 
Ad

Recently uploaded (20)

PDF
Activated Carbon for Water and Wastewater Treatment_ Integration of Adsorptio...
EmilianoRodriguezTll
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PDF
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PDF
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
PPT
SCOPE_~1- technology of green house and poyhouse
bala464780
 
PPT
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
PDF
Software Testing Tools - names and explanation
shruti533256
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
DOCX
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
PPTX
ternal cell structure: leadership, steering
hodeeesite4
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PPTX
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
PPTX
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
PPTX
easa module 3 funtamental electronics.pptx
tryanothert7
 
PPT
Lecture in network security and mobile computing
AbdullahOmar704132
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PPTX
Information Retrieval and Extraction - Module 7
premSankar19
 
Activated Carbon for Water and Wastewater Treatment_ Integration of Adsorptio...
EmilianoRodriguezTll
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
SCOPE_~1- technology of green house and poyhouse
bala464780
 
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
Software Testing Tools - names and explanation
shruti533256
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
ternal cell structure: leadership, steering
hodeeesite4
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
easa module 3 funtamental electronics.pptx
tryanothert7
 
Lecture in network security and mobile computing
AbdullahOmar704132
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
Information Retrieval and Extraction - Module 7
premSankar19
 

java introduction features and propertie

  • 1. Structured Programming Language vs Object Oriented Programming Language By Sana Mateen
  • 2. • C is called a structured programming lang uage because to solve a large problem, • C programming language divides the problem into smaller modules called functions or procedures each of which handles a particular responsibility. • The program which solves the entire problem is a collection of such functions. • structured programming can save time and energy when writing small and simple programs (Though Simple program is quite relative to the writer) that would essentially hold into one page. • Object-Oriented Programming (OOP) is a programming language model organized around objects rather than “actions”. • The leading languages based on OOP are C++, Java, Python, C#, Visual Basic etc… • The first step in OOP is to identify all the objects the programmer wants to manipulate and how they relate to each other. • Once an object has been identified, the role of the programmer is to generalize it as a class of objects and define the kind of data that it contains and list of procedures that manipulate it.
  • 3. OOP Basics • Object:In real world could be a desk,tv,bicycle etc. • It share two characteristics state and behavior. • An object stores its state in fields called variables and its behavior through methods. • Methods operate on an object internal state and serve as the primary mechanism for object to object communication.
  • 7. Encapsulation • Encapsulation in java is a process of wrapping code and data together into a single unit, for example capsule i.e. mixed of several medicines. • It is a technique of making the fields in a class private and providing access to fields via public methods
  • 8. Polymorphism • It is the concept of object oriented programming.The ability of different objects to respond, each in its own way, to identical messages is called polymorphism. • When one task is performed by different ways i.e. known as polymorphism. • poly mean many morph mean form.
  • 9. Inheritance • Inheritance in java is a mechanism in which one object acquires all the properties and behaviors of parent object. • The idea behind inheritance in java is that you can create new classes that are built upon existing classes. • When you inherit from an existing class, you can reuse methods and fields of parent class, and you can add new methods and fields also. • Inheritance represents the IS-A relationship, also known as parent- child relationship.
  • 10. Program • An organized list of instructions that, when executed, causes the computer to behave in a predetermined manner. Without programs, computers are useless. • A program is like a recipe. It contains a list of ingredients (called variables) and a list of directions (called statements) that tell the computer what to do with the variables. The variables can represent numeric data, text, or graphical images. • There are many programming languages -- C, C++, Pascal, BASIC, FORTRAN, COBOL, and LISP are just a few. These are all high-level languages. One can also write programs in low-level languages called assembly languages, although this is more difficult. • Low-level languages are closer to the language used by a computer, while high-level languages are closer to human languages. • Eventually, every program must be translated into a machine language that the computer can understand. This translation is performed by compilers, interpreters, and assemblers. • When you buy software, you normally buy an executable version of a program. This means that the program is already in machine language -- it has already been compiled and assembled and is ready to execute.
  • 12. L 3.4 Java Class Hierarchy  In Java, class “Object” is the base class to all other classes  If we do not explicitly say extends in a new class definition, it implicitly extends Object  The tree of classes that extend from Object and all of its subclasses are is called the class hierarchy  All classes eventually lead back up to Object  This will enable consistent access of objects of different classes.
  • 14. Abstraction is the concept of exposing only the required essential characteristics and behavior with respect to a context. Hiding of data is known as data abstraction. In object oriented programming language this is implemented automatically while writing the code in the form of class and object. Real Life Example of Abstraction in Java Abstraction shows only important things to the user and hides the internal details, for example, when we ride a bike, we only know about how to ride bikes but can not know about how it work? And also we do not know the internal functionality of a bike.