Object Orientation Part I - PowerPoint PPT Presentation

1 / 25
About This Presentation
Title:

Object Orientation Part I

Description:

Neighbor's Male Boxer Dog. Window's Button. Your House. Airplane. Dog. Class or Object ... Neighbor's Male Boxer Dog. Window's Button. Object. Your House ... – PowerPoint PPT presentation

Number of Views:43
Avg rating:3.0/5.0
Slides: 26
Provided by: jayja8
Category:

less

Transcript and Presenter's Notes

Title: Object Orientation Part I


1
Object Orientation Part I
2
Objectives
  • Upon Completion of this unit you should be able
    to
  • Explain what OOP is
  • Explain Class and Object
  • Explain Methods and Properties

3
Module Map
Object Orientation
Class
Objects and Instances
Methods
Properties, Attributes, etc
4
Object Orientation
  • Programming (OOP)
  • Analysis/Design (OOA/D)
  • OO System
  • Collection of objects that interact with each
    other
  • Behaviors and Characteristics
  • Messages
  • Real-life examples of objects
  • Cars
  • Houses
  • Employees

5
Module Map
Object Orientation
Class
Objects and Instances
Methods
Properties, Attributes, etc
6
Class
  • Class is a blueprint
  • Class is a definition
  • Contains Methods and Properties

7
Class
  • Classes within programming languages
  • Window
  • Button
  • CombBox
  • Classes created for systems
  • Employees
  • Customers
  • Products

8
Module Map
Object Orientation
Class
Objects and Instances
Methods
Properties, Attributes, etc
9
Object
  • A specific instance of a class

10
Objects Exercise
11
Objects Exercise
12
Objects Exercise
13
Objects Exercise
14
Objects Exercise
15
Objects Exercise
16
Objects Exercise
17
Instance
  • An object is a specific instance of a class
  • An instance and object are referring to the same
    thing

18
Instantiation
  • The process of creating an object or and instance
    of a class

19
Module Map
Object Orientation
Class
Objects and Instances
Methods
Properties, Attributes, etc
20
Methods
  • Methods define the class abilities or behaviors
  • Compare to
  • Subroutines
  • Procedures
  • Functions

21
Method Examples
  • print() method for Report class
  • turnLeft() method for TurnSignal class
  • open() and close() methods for Window classes
  • CRUD methods (create, read, update, delete)

22
Method Types
  • Standard
  • Mutator (Sets)
  • setAge()
  • setPrice()
  • Accessor (Gets)
  • getAge()
  • getPrice()

23
Module Map
Object Orientation
Class
Objects and Instances
Methods
Properties, Attributes, etc
24
Properties/Attributes
  • Properties
  • Data members
  • Attributes
  • Fields
  • Define a class characteristics

25
Summary
  • Object Oriented (Analysis/Design/Prog)
  • Classes and Objects
  • Methods and Properties
Write a Comment
User Comments (0)
About PowerShow.com