+ All Categories
Home > Documents > 3 Object Oriented Programming Concepts

3 Object Oriented Programming Concepts

Date post: 06-Jul-2018
Category:
Upload: dimas
View: 236 times
Download: 0 times
Share this document with a friend

of 24

Transcript
  • 8/17/2019 3 Object Oriented Programming Concepts

    1/24

    By: De Rosal, Ign. Moses S.

  • 8/17/2019 3 Object Oriented Programming Concepts

    2/24

    Evolution of Programming Languages

    Class VS Object

    What

    is a Class

    ?•

    What is a Object?

    State

    Behavior•

    OOP AdvantagesBy: De Rosal, Ign. Moses S.

  • 8/17/2019 3 Object Oriented Programming Concepts

    3/24

  • 8/17/2019 3 Object Oriented Programming Concepts

    4/24

  • 8/17/2019 3 Object Oriented Programming Concepts

    5/24

    • A class is the blueprint

    from which

    individual objects are created.

    •  They all have st te

    andbeh vior

    .

  • 8/17/2019 3 Object Oriented Programming Concepts

    6/24

    • Objects are key to understanding object-

    oriented technology.

    •  They all have beh vior

    andst te

    with v lue

    .

    • Example of object:

  • 8/17/2019 3 Object Oriented Programming Concepts

    7/24

  • 8/17/2019 3 Object Oriented Programming Concepts

    8/24

    Dogs have behavior:• barking,

    • fetching,

    •running,

    • sleeping

    Cars have behavior :• change gear,

    • speed up,

    •applying brakes

  • 8/17/2019 3 Object Oriented Programming Concepts

    9/24

    color

    age

    barking

    running

    State

    behavior

    Class dog

  • 8/17/2019 3 Object Oriented Programming Concepts

    10/24

    color=white

    age=

    barking

    running

    Instance

    State

    Instance

    behavior

    Object coco dog)

  • 8/17/2019 3 Object Oriented Programming Concepts

    11/24

    • Variableyang mengitari class, dengan nilai

    datanya bisa ditentukan di object.

    • Name, age, dan color are state of class Dog

    Class Dog

    Name: stringAge: integer

    Color: String

    Obj Dog

    Coco3

    white   Obj Dog

    Bubu

    4brown

  • 8/17/2019 3 Object Oriented Programming Concepts

    12/24

  • 8/17/2019 3 Object Oriented Programming Concepts

    13/24

    By: De Rosal, Ign. Moses S.

  • 8/17/2019 3 Object Oriented Programming Concepts

    14/24

    • Behavior is implementation of how to class

    work.

    • Bahavior can:

    1. Manipulatingdata

    2. Perform mathematical calculations3. Monitoringan event

  • 8/17/2019 3 Object Oriented Programming Concepts

    15/24

  • 8/17/2019 3 Object Oriented Programming Concepts

    16/24

  • 8/17/2019 3 Object Oriented Programming Concepts

    17/24

  • 8/17/2019 3 Object Oriented Programming Concepts

    18/24

  • 8/17/2019 3 Object Oriented Programming Concepts

    19/24

  • 8/17/2019 3 Object Oriented Programming Concepts

    20/24

  • 8/17/2019 3 Object Oriented Programming Concepts

    21/24

  • 8/17/2019 3 Object Oriented Programming Concepts

    22/24

  • 8/17/2019 3 Object Oriented Programming Concepts

    23/24

    • Search on google about OOP Advantages

    (Abstraction and Encapsulation)

    • Make a summary of Class, Object, OOP Advantages

    (Abstraction and Encapsulation) with yoursentences.

    • Give an example.

    • Write in a folio with handwriting.

    • Deadline next meeting.

  • 8/17/2019 3 Object Oriented Programming Concepts

    24/24


Recommended