Академический Документы
Профессиональный Документы
Культура Документы
Example?
Use Case diagrams show the various activities the users can perform on the system.
Use cases are a mature model to capture software requirements. They are often contrasted
to large, monolithic documents that attempt but fail to completely convey all possible
requirements before construction of a new system begins.
Ans: Inheritance provides a natural classification for kinds of objects and allows for the
commonality of objects to be explicitly taken advantage of in modeling and constructing
object systems. Natural means we use concepts, classification, and generalization to
understand and deal with the complexities of the real world. See the example below using
computers
Computer
/ | \
Mainframe Mini Personal
/ \ ... / \
Data Proc Scientific PC Workstation
Another Example:
Inheritance is a technique by which the properties and attributes of a class are inherited
by a subclass. With inheritance we can refine the subclasses by adding some new
attributes and functionality.
For Example, the Employee class shown below is the super class and the classes
Salesman and Accounts Assistant are inherited classes.
Ques: what is object-oriented modeling? Explain object model and dynamic Model?
• Facilitates changing of system to improve functionality during the system life time
• Facilitates reuse of code of each of the subsystems used to design the large system
• Facilitates integrating subsystems into a large system
• Facilitates design of distributed systems
Object Model:
Data abstraction
Encapsulation
Inheritance
An Object diagram focuses on some particular set of object instances and attributes, and
the links between the instances. A correlated set of object diagrams provides insight into
how an arbitrary view of a system is expected to evolve over time. Object diagrams are
more concrete than class diagrams, and are often used to provide examples, or act as test
cases for the class diagrams. Only those aspects of a model that are of current interest
need be shown on an object diagram.
Dynamic Models:
Dynamic model diagrams show how runtime objects act out a use case by sending
messages to each other. There are two sorts of dynamic-model diagrams: Sequence
Diagrams and Collaboration Diagrams. They describe how objects collaborate.
(collaboration, sequence diagrams)
Collaboration diagram - show how the behavior of several objects collaborating
together to fulfill a common purpose
show the message flow between objects in an OO application and also imply the basic
associations (relationships) between classes.
State, Sequence (time focus), Collaboration (space focus), Activity (work focus),
diagrams are used to express the behaviour of a system
A system has an architecture based on a dynamic object model when it stores the object
model for itself in a way that can be modified dynamically. This means it will have
classes like "Class", "Attribute", and "Association". I've run into a bunch of systems
recently that have a dynamic object model, and have been trying to document them.
Sometimes we have called this idea an "active object model", "metadata driven system",
or "user defined products".