Transcript Chapter 6 review
Object Modeling
What is object-oriented analysis, and what are some advantages of using this technique?
What is object-oriented analysis, and what are some advantages of using this technique?
Analysis will integrate easily with object oriented programming languages (Java, Smalltalk, C++, Perl) Code is modular and reusable. This can reduce cost and development time. It is easy to maintain and expand as new objects can be cloned using inherited properties.
Define an object, and give an example.
Define an object, and give an example.
Object a real person, place, event, or transaction Data and process that act on the data can be combined into Objects
Example
A few Objects in medicine include Physician, Patient, and An Appointment.
A homework assignment is an object.
Define an attribute and give an example.
Define an attribute and give an example.
Attribute: A single characteristic or fact about an entity – the smallest piece of data that has meaning within an information system – a field. Example: The object of a car has attributes of make, model and color.
Define a method and give an example.
Define a method and give an example.
Method: A method defines specific tasks that an object (can/must) perform. A method describes what and how an object does something.
Examples : perate window wipers, apply vehicle brakes.
Define a class and give an example.
Define a class and give an example.
Class: A collection of similar objects Example: Objects of homework assignment to review a chapter 2, to provide a case example on chapter 2, and to review material for an exam could have a collection of similar objects into one Class known as Assignments.
Define a subclass and give an example.
Define a subclass and give an example.
Subclass: further division of objects in a class – into more specific categories within a class Example: A generalized class of Assignments could have a specialized Subclass to only include assignments focused on Case Examples reflected within a chapter, or a different subclass to only include assignments that reviewed important vocabulary within a chapter.
Define encapsulation and explain the benefits it provides.
Define encapsulation and explain the benefits it provides.
Encapsulation: All data and methods are self contained, as in a black box.
Example: A gas pump operation with a choice of multiple selections of fuel, without responsibility to figure out how to get the chosen fuel to reach a single nozzle.
Define polymorphism, and give an example
Define polymorphism, and give an example Polymorphism: The concept that a message gives different messages to two (or more) different objects
Example:
results depending if it is received by a child or the family dog.
Good Night message might produce different
Define an actor and give an example
Define an actor and give an example Actor: An external entity with a specific role. In a use case model, actors are used to model interaction with the system.
An Actor initiates activity by requesting the system to perform a function or process In a use case diagram, the user becomes the Actor, with a specific role that describes how interaction occurs with the system Example: A sales System has a credit card validation “Use Case” with the customer as an Actor
Apply the phrase “use case”
Apply the phrase “use case” Use-Case: A description in UML Unified Modeling Language that documents the name of the use case, the actor, a description of the use case, a step-by-step list of the tasks required for successful completion, and other key descriptions and assumptions