0% found this document useful (0 votes)
37 views17 pages

E3s1 Eee Oops l1 Oops Intro

The document provides an overview of Object Oriented Programming (OOP) and its basic concepts, highlighting the differences between Procedure Oriented Programming (POP) and OOP. It discusses various programming paradigms, including imperative, procedural, declarative, functional, and logic paradigms, and introduces key OOP concepts such as objects and classes. Additionally, it covers the history and milestones of the Java programming language, which is a prominent example of OOP.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views17 pages

E3s1 Eee Oops l1 Oops Intro

The document provides an overview of Object Oriented Programming (OOP) and its basic concepts, highlighting the differences between Procedure Oriented Programming (POP) and OOP. It discusses various programming paradigms, including imperative, procedural, declarative, functional, and logic paradigms, and introduces key OOP concepts such as objects and classes. Additionally, it covers the history and milestones of the Java programming language, which is a prominent example of OOP.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Object Oriented

Programming
Structure through Java

Faculty:
Mr. Sreedhar Aakula
Dept of IT,RGUKT-
Basar
Introduction to OOPS
Paradigms of Programming Languages

Differences between Procedure Oriented

Programming(POP) and Object Oriented


Programming(OOP)
Basic concepts of Object Oriented Programming(OOP)

2 Developed by: Sreedhar Aakula,CSE Dept


Paradigms of Programming Languages

Developed by: Sreedhar Aakula, Dept of


3 IT
Imperative paradigm: Imperative means “expressing a
command or order”, so the programming languages in this
category specify the step-by-step explanation of command.
Imperative programming languages describe the details of
how the results are to be obtained.
Procedural paradigm: Procedural languages are statement
oriented with the variables that holding values.
 Non executable statements allocate and initialize
memory.
 Executable statements like computations, control flow,
and input/output statements.
Ex: C, Fortran, Basic, Pascal, Cobol etc.

4 Developed by: Sreedhar Aakula,CSE Dept


Object Oriented paradigm: The Object Oriented
paradigm is centered on the concept of the object.
Everything is focused on objects. Computation is
viewed as the simulation of real world entities.
Ex: C++, Java, C#.Net, Python etc.

Declarative paradigm: In this paradigm


programs declare or specify what is to be
computed without specifying how it is to be
achieved. It is also known as Value-oriented
programming.
5 Developed by: Sreedhar Aakula,CSE Dept
Functional paradigm: In this paradigm, a program
consists of a collection of functions. A function just
computes and returns a value. A program consists of
calling a function with appropriate arguments, but
any function can make use of other functions also.
Ex: Lisp, ML, Scheme, and Haskell.
 Logic paradigm: In this only explain what is to be
computed not how to compute it. Here program is
represented by a set of relationships, known as
predicting which are held to be true, and a set of
logic/clauses (i.e. if A is true, then B is true).
Ex: Prolog language

6 Developed by: Sreedhar Aakula,CSE Dept


POP Vs OOP:

7 Developed by: Sreedhar Aakula,CSE Dept


8 Developed by: Sreedhar Aakula,CSE Dept
Introduction to OOP:

9 Developed by: Sreedhar Aakula,CSE Dept


Contd..,

10 Developed by: Sreedhar Aakula,CSE Dept


Basic Concepts of OOP:
Object-Oriented Programming is a
methodology or paradigm to design a
program using classes and objects.

11 Developed by: Sreedhar Aakula,CSE Dept


 Object means a real world entity such as pen, chair, table
etc.An entity that has state and behavior is known as object. It
can be physical or logical
 state: represents data (value) of an object.
 behavior: represents the behavior (functionality) of an object.
 identity: Object identity is typically implemented via a unique
ID.
For Example: Pen is an object. Its name is Reynolds, color is
white etc. known as its state. It is used to write, so writing is its
behavior.
 Object is an instance of a class. Class is a template or
blueprint from which objects are created. So object is the
instance(result) of a class.
 Object Definitions:
 Object is a real world entity.
 Object is a run time entity.
 Object is an entity which has state and behavior.
 Object is an instance of a class.
12 Developed by: Sreedhar Aakula,CSE Dept
 Class: Collection of objects is called class. It is a
logical entity.
 A class is a group of objects which have common
properties. It is a template or blueprint from which
objects are created. It is a logical entity. It can't be
physical. A class in Java can contain:
 fields
 methods
 constructors
 blocks
 nested class and interface.
 Syntax to declare a class:
class <class_name>{
field;
method;
}
13 Developed by: Sreedhar Aakula,CSE Dept
Introduction to Java:
History:
Java started out as a research project in 1991 by James Gosling.
Research efforts birthed a new language, OAK. ( A tree outside
of the window of James Gosling’s office at Sun).
James Gosling and his team members were consuming lot of
coffee while developing this language.
Oak was renamed Java in 1995.
Primary motivation of Java was the need of Platform -
independent which could be used to create s/w to be
embedded in various consumer electronic devices like TVs,
VCRs, Ovens, Remote Controls

14 Developed by: Sreedhar Aakula,CSE Dept


Mile Stones of Java
1990 – sun Microsystems, headed by James Gosling decided to dvlp a Spl. S/W that could be
used to manipulate Consumer Electronic Devices.

1991 – The team announced a new lang. Named “OAK”

1992 – The Team demonstrated he appl. Of their new lang to control a list of home appliances

1993 – WWW appeared on the Internet & Transformed the text-based Internet into graphical-
rich environment.The team came up with the idea of developing web applets ( tiny Pgms)
that could run on all types of computers connected to Internet
1994- The team developed a web browser called “ Hot Java” to locate & run applet pgms on
Internet

1995- Oak was renamed “Java”. Many popular companies including Netscape, Microsoft
announced their support.

1996- Java established itself not only as a leader for Internet Programming but also as a
general purpose OOP Lang.

15
Java Versions:

16 Developed by: Sreedhar Aakula,CSE Dept


Thank
you!!!
For any queries write to
Developed by: Sreedhar Aakula,CSE Dept
E-mail:
17

You might also like