Chapter 20 object oriented concepts and principles
This presentation is the property of its rightful owner.
Sponsored Links
1 / 12

Chapter 20 Object-Oriented Concepts and Principles PowerPoint PPT Presentation


  • 108 Views
  • Uploaded on
  • Presentation posted in: General

Chapter 20 Object-Oriented Concepts and Principles. The OO Process Model. The OO Mindset. objects. problem domain. Classes. object-oriented thinking begins with the definition of a class often defined as: template generalized description pattern

Download Presentation

Chapter 20 Object-Oriented Concepts and Principles

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Chapter 20 object oriented concepts and principles

Chapter 20Object-Oriented Conceptsand Principles


The oo process model

The OO Process Model


The oo mindset

The OO Mindset

objects

problem domain


Classes

Classes

  • object-oriented thinking begins with the definition of a class often defined as:

    • template

    • generalized description

    • pattern

    • “blueprint” ... describing a collection of similar items

  • a metaclass (also called a superclass) is a collection of classes

  • once a class of items is defined, a specific instance of the class can be defined


Building a class

Building a Class


Encapsulation hiding

Encapsulation/Hiding

Theobject encapsulates

both data and the logical

procedures required to

manipulate the data

method

# 2

method

# 1

data

method

# 6

method

# 4

method

# 5

Achieves“information hiding”


What is a class

What is a Class?

occurrences

roles

organizational units

things

places

external entities

structures

class name

attributes:

operations:


Class hierarchy

Class Hierarchy

furniture (superclass)

table

chair

desk

"chable"

subclasses of the

furniture superclass

instances of chair


Methods a k a operations services

Methods(a.k.a. Operations, Services)

An executable procedure that is encapsulated in a class and is designed to operate on one or more data attributes that are defined as part of the class.

A method is invoked

via message passing.


Messages

Messages


Key concepts

Key Concepts

  • classes and class hierarchies

    • instances

    • inheritance

    • abstraction and hiding

  • objects

    • attributes

    • methods

    • encapsulation

    • polymorphism

  • messages


Other

Other

  • Recursive/parallel model

    • Like spiral/evolutionary

    • But differs 2 ways

  • OO Project metrics and estimation

  • OO Project tracking


  • Login