KEMBAR78
Java - Object Oriented Programming Concepts | PDF
OBJECT ORIENTED PROGRAMMING
CONCEPTS
Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
Programming Language
 A programming language is a computer language
programmers use to develop applications
 set of instructions for a computer to perform
specific tasks.
 The commonly used programming methodologies
are:
 Procedure-oriented programming
 Object-oriented programming (OOP)
2Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
Procedure-oriented programming
 Involves dividing a large program into a set of sub-
procedures or subprograms that perform specific
tasks.
 Module consists of single or multiple procedures.
 Most of the data is shared as global that can be
accessed from anywhere within the program.
3Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
4Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
5Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
6Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
7Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
8Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
9Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
10Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
an approach that provides a way of modularizing
programs by creating partitioned memory area for
both data and functions that can be used as
template for creating copies of such modules on
demand.
11Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
12Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
13Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
14Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
Procedural vs. Object-Oriented
15Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
Procedural vs. Object-Oriented
S. No Procedural Programming Object-Oriented Programming
1 Emphasis on Procedures Emphasis on Data
2 Data is not hidden Data is hidden
3 Data and methods are
separate
Data and methods are combined
using objects
4 Data can be accessed by
external functions
Data cannot be accessed by
external functions
5 Top-down Approach in
program design
Bottom-up Approach in program
design
6 Eg. C, PASCAL Eg. C++, JAVA, Smalltalk
16Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
17Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
18Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
19Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
20Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
21Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
22Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
23Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
24Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
25Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
26Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
27Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
28Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
29Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
30Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
31Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
32Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
33Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
34Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
35Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
36Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
37Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
38Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
39Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
40Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
41Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
42Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
43Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
44Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
45Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
46Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
47Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
The End…
48Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam

Java - Object Oriented Programming Concepts

  • 1.
    OBJECT ORIENTED PROGRAMMING CONCEPTS Dr.P. Victer Paul, Indian Institute of Information Technology Kottayam
  • 2.
    Programming Language  Aprogramming language is a computer language programmers use to develop applications  set of instructions for a computer to perform specific tasks.  The commonly used programming methodologies are:  Procedure-oriented programming  Object-oriented programming (OOP) 2Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
  • 3.
    Procedure-oriented programming  Involvesdividing a large program into a set of sub- procedures or subprograms that perform specific tasks.  Module consists of single or multiple procedures.  Most of the data is shared as global that can be accessed from anywhere within the program. 3Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
  • 4.
    4Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 5.
    5Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 6.
    6Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 7.
    7Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 8.
    8Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 9.
    9Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 10.
    10Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 11.
    an approach thatprovides a way of modularizing programs by creating partitioned memory area for both data and functions that can be used as template for creating copies of such modules on demand. 11Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
  • 12.
    12Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 13.
    13Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 14.
    14Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 15.
    Procedural vs. Object-Oriented 15Dr.P. Victer Paul, Indian Institute of Information Technology Kottayam
  • 16.
    Procedural vs. Object-Oriented S.No Procedural Programming Object-Oriented Programming 1 Emphasis on Procedures Emphasis on Data 2 Data is not hidden Data is hidden 3 Data and methods are separate Data and methods are combined using objects 4 Data can be accessed by external functions Data cannot be accessed by external functions 5 Top-down Approach in program design Bottom-up Approach in program design 6 Eg. C, PASCAL Eg. C++, JAVA, Smalltalk 16Dr. P. Victer Paul, Indian Institute of Information Technology Kottayam
  • 17.
    17Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 18.
    18Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 19.
    19Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 20.
    20Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 21.
    21Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 22.
    22Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 23.
    23Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 24.
    24Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 25.
    25Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 26.
    26Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 27.
    27Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 28.
    28Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 29.
    29Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 30.
    30Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 31.
    31Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 32.
    32Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 33.
    33Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 34.
    34Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 35.
    35Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 36.
    36Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 37.
    37Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 38.
    38Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 39.
    39Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 40.
    40Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 41.
    41Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 42.
    42Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 43.
    43Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 44.
    44Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 45.
    45Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 46.
    46Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 47.
    47Dr. P. VicterPaul, Indian Institute of Information Technology Kottayam
  • 48.
    The End… 48Dr. P.Victer Paul, Indian Institute of Information Technology Kottayam