Professional Documents
Culture Documents
UNIT- I
PART A
OOA
concerns
determining
the
system
Requirements and identifying classes and their
relationship to other objects in a given applications.
7. Define Attributes or properties.
of
4. What is an Object?
Can fly
flown by
planes
Item
Design methods
PART B
Object Orientation:
Two orthogonal views of the software: Objectoriented systems development methods differ from
traditional development techniques in that the traditional
techniques views software as a collection of programs (or
functions) and isolated data. This means that there are two
different, yet complementary ways to view software
construction: we can focus primarily on the functions or
primarily on the data.
of
Object-oriented
activities:
system
development
includes
these
Prototyping:
Although the object-oriented analysis and design
describe the system features, it is important to construct a
prototype of some of the key system components shortly
9
10
Reusability
A major benefit of object-oriented system
development is reusability, and this is the most difficult
promise to deliver on. For an object to be really reusable,
much more effort must be spent designing it.
The reuse strategy can be based on the following:
Information hiding (encapsulation)
Conformance to naming standards.
Creation and administration of an object repository.
Encouragement by strategic management of reuse as
opposed to constant redevelopment
Establishing targets for a percentage of the objects in
the project to be reused (i.e., 50 percent reuse of
objects)
3. Explain about Objects and its basic with example?
Object means a combination of data and logic that
11
12
13
Multiple Inheritance:
Some object-oriented systems permit a class to
inherit its state (attributes) and behaviors from more than
one superclass. This kind of inheritance is referred to as
multiple inheritance. Multiple inheritance can pose some
difficulties. For example, several distinct parent classes
can declare a member within a multiple inheritance
hierarchy. This then can become an issue of choice,
particularly when several superclasses define the same
method. It also is more difficult to understand programs
written in multiple inheritance systems.
One way of achieving the benefits of multiple
inheritance in a language with single inheritance is to
inherit from the most appropriate class and then add an
object of another class as an attribute.
5. Explain about polymorphism with example.
Poly means many and morph means form. In the
context of object-oriented systems, it means objects that
can take on or assume many different forms.
Polymorphism means that the same operation may
behave differently on different classes. Polymorphism is
the relationship of objects of many different classes by
some common superclass; thus, any of the objects
designated by this name is able to respond to some
common set of operations in a different way. For example,
object
Relationships
and
14
15
Object-oriented analysis.
Object-oriented information modeling.
Object-oriented design.
Prototyping and implementation.
Testing, iteration and documentation.
16
UNIT II
PART A
1. What are the various phases of OMT?
OMT consists of four phases, which can be
performed iteratively:
1.
2.
3.
4.
Analysis
System design
Object design
Implementation
17
1.
2.
3.
4.
5.
Conceptualization
Analysis and development of the model
Design or create the system architecture
Evolution or implementation
Maintenance
Class diagrams
Object diagrams
State transition diagrams
Module diagrams
Process diagrams
Interaction diagrams
6. What do you meanly Macro development process?
The Macro process serves as a controlling
framework for the micro process and can take weeks or
even months. The primary concern of the macro process
18
4. Identify class
implementation
and
object
interfaces
and
It solves a problem
It is proven concept
The solution is not obvious
It describes a relationship
19
Focus on practicability
Aggressive disregard of originality
Nonanonymous review
Writers workshops instead of presentations
Careful editing
39. What are the key ideas that was followed while
modeling?
Multiplicity specifies
associated classes
the
range
of
allowable
0..1
44. Define Binary association notation?
A binary association is drawn as a solid path
connecting two classes, or both ends may be connected to
the same class. An association may have an association
name.
0..*
1..3, 7..10, 15, 19..*
48. Define OR association?
Car
(or)
Company
Account#
*
0..1
23
Person
Class
Student
student
Grade Book
Grade
Exam
lab
24
PART B
1. Explain Rumbaugh et AL.s Object Modeling
Technique?
RUMBAUGH ET AL.S OBJECT MODELING TECHNIQUE
Client
firstName
lastName
pinCode
Client
Account
Account
Number
Balance
Deposit
withdraw
Transaction
Account
Transaction
Create Transaction
TransDate
transTime
transType
amount
PostBalance
Checking
Account
Withdraw
Saving
Account
26
Nothing is selected
Account has
been selected
Selected checking
or savings account
Select checking
account
Select transaction
type (withdraws,
deposit, transfer)
Enter the
amount
Confirmation
27
28
and
Library
Checking out books
Member
Doing research
Reading books,
newspapers
Purchasing
supplies
Supplier
Tested in
Implemented by
Realized by
OK
NOT OK
Domain
object
Model
Analysis
Model
Design
Model
Implementatio
n Model
Testing
Model
30
Figure: The use-case model is considered in every model and
phase
It solves a problem
It is proven concept
The solution is not obvious
It describes a relationship
The pattern has a significant human component
31
Antipatterns
A pattern represents a best practice, an
antipattern represents worst practice or a lesson
learned. Antipatterns come in two varieties:
Focus on practicability
Aggressive disregard of originality
Nonanonymous review
Writers workshops instead of presentations
Careful editing
32
Static Model
A modeling language must include [2]
A static model can be viewed as a snapshot of a
systems parameters at rest pr at a specific point in time.
Static models are needed to represent the structural or
static aspect of a system. For example, a customer could
have more than one account or an order could have more
than one account or an order could be aggregated from
one or more line items. Static models assume stability and
an absence of change in data over time. The unified
modeling language class diagram is an example of a static
model.
Dynamic Model
A dynamic model, in contrast to a static model, can
be viewed as a collection of procedures or behaviors that,
taken together, reflect the behavior of a system over time.
Dynamic relationships show how the business objects
interact to perform tasks. For example, an order interacts
with inventory to determine product availability.
A system can be described by first developing its
static model, which is the structure of its objects and their
relationships to each other frozen in time, a baseline.
Then, we can examine changes to the objects and their
relationships over time. Dynamic modeling is most useful
during the design and implementation phases of the
system development. The UML interaction diagrams and
activity models are examples of UML dynamic models.
6. Briefly discuss about modeling?
Object Diagram:
A static object diagram is an instance of a class
diagram.
Boeing
737
Boeing
737
Boeing 737
Length: meter
Fuel capacity:
Gal
Doors: int
Length: meter
Fuel capacity:
Gal
Doors: int
Lift ()
Break ()
34
Bank Account
Multiplicity specifies
associated classes
0..1
0..*
1..3, 7..10, 15, 19..*
the
range
of
allowable
OR Association
An OR association indicates a situation in which
only one of several potential associations may be
instantiated at one time for any single object.
Association class
An association class is an association that also has
class properties. An association class is shown as a class
symbol attached by a dashed line to an association path.
N-Ary Association
An n ary association is an association among
more than two classes.
Year
Semester Class
Class
Class
student
Student
consist Of
Player
class
Figure: Association path
Vehicle
Client
Make a call
Operator
Do research
Bus
Truck
Car
Shared target style
Boeing
Airplane
Return a call
Support
representative
Boeing
737
Boeing
757
Boeing
767
<<actor>>
customer
<<actor>>
customer
Operator
Exchange
Receiver
Talk
OffHook
DialTone
Dial Number
RingTone
OffHook
OnHook
37
Figure: An example of a sequence diagram
Telephone call
Object
Caller
Message
1: OffHook
2: DialTone
3: DialNumber
Exchange
4: RingTone
Receiver
5: OffHook
6: OnHook
Talk
Caller
Message
1.1: OffHook
2.1: DialTone
1.2: DialNumber
Exchange
2.2: RingTone
Receiver
3.1: OffHook
4.1: OnHook
Talk
38
39
Idle
Lift receiver and get dial
tone
State
Prepare incoming
documents
Dialing
Index documents
Make
electronic file
Start
Entry and start dialog
exit and stop dial tone
Dial
Number.siValid()
Complete request
Entry and
number.append(n)
Digit(n)
Draw up contract
mortgage - deed
Pay provision to
insurance agent
Draw up insurance
policy
Figure: An activity diagram for processing mortgage
requests (Loan: Processing Mortgage Request)
40
Update
UI
41
Figure: A component
diagram
Update
Node 2: Johns PC
UI
42
UNIT III
PART A
Customer
Clients
Bank
Account
Checking
43
44
45
46
Top-down
Bottom up
Reusability
Multiple inheritance
47
cases:
Attributes usually correspond to nouns followed by
prepositional phrases such as cost of the soup.
Attributes also may correspond to adjectives or
adverbs.
Keep the class simple
Attributes are less likely to be fully described in the
problem statement
Omit derived attributes
Do not carry discovery of attributes to excess.
37. What are the various attributes of Bank Client
class?
The attributes of the Bank client are
First Name
Last Name
Pin Number
Card Number
Account: Account
Trans lD
Trans Date
trans Time
trans Type
amount
post Balance
address
state
deposit
withdraw
create Transaction
PART B
1. Explain Unified Approach for use case driven
object oriented analysis?
Use-case Driven Object-Oriented analysis:
The Unified Approach.
The object-oriented analysis (OOA) phase of the
unified approach uses actors and use cases to describe
the system from the users perspective. The actors are
external factors that interact with the system; use cases
are scenarios that describe how actors use the system.
1. Identifying the actors:
Who is using the system?
Or, in the case of a new system, who will be
using the system/
2. Develop a simple business process model using
UML activity diagram.
3. Develop the use case:
49
Identify classes
Identify relationships
Identify attributes
Identify methods
2. Define Use-case
example?
model
and
explain
it
with
50
52
Collaborators
.
Identify
classes and
responsibil
ity
Identify
collaborati
on
Figure 7-9
A classes, Responsibilities and collaborators (CRC) index
card.
Identify
responsibilit
y
54
and
Collaborators
for
the
Selecting classes
categories.
from
the
55
relevant
and
fuzzy
of association.
conceptual
Identifying Associations:
Identifying associations begins by analyzing the
interactions between classes. After all, any dependency
relationship between two or more classes is an
association. You must examine the responsibilities to
determine dependencies.
The following
associations:
questions
can
help
us
to
identify
Association name
Class A
Role of A
Role o B
Class B
Parent of
John
Son
Father
Kcl
Single
Inheritance
Aggregation
Engine
Radio
Carburetor
LastName
PinNumber
CardNumber
Account: Account
transID
transDate
transTime
transType
Amount
post Balance
FirstName
Address
State
12. Explain methods & messages and define it by
59
Operations (methods or behavior) in the objectoriented system usually correspond to events or actions
that transmit information in the sequence diagram or
queries about attributes (and sometimes associations) of
the objects.
Defining Account class operations
Deposit and withdrawl operations are available to
the Client through the bank application but they are
60
Bank
ATM manchine
Address state
Bank Client
firstName
last Name
card
Number
pinNumber
+verifypass
word
Transaction
Trans ID
Trans date
Trans Time
Trans Type
Amount
Account
Number
61
Checking A/c
Saving A/c
Savings A/c
Checking
+withdrawal
62
Req.Take card
Take card
Display main
screen
The dotted lines are the lifelines. The line on the right
represents an actor in this case the Bankclient, or an event
that is outside the system boundary.
Collaboration
diagrams are just another view of the sequence diagrams
and therefore can be created automatically; most UML
modeling tools automatically create them.
ATM machine
Bank cheque
Multiple inheritance.
multiple inheritance.
64
UNIT IV
PART A
1.
Define coupling.
65
4.
What are various types of coupling among
object?
Types of coupling
about
8.
Interaction
and
Inheritance
7.
Content coupling
Common coupling
Control coupling
Control coupling
stamp coupling
data coupling
5.
Explain
coupling.
66
10.
13.
What are the set of values used in an
expression.
The expression are meant to work on sets of values
when applicable.
12.
14.
19.
68
#amount:float
#postBalance:float
25.
+ public visibility
# protected visibility
-private visibility
28.
27.
Constructor
Destructor
Conversion method
Copy method
Attribute set
Attribute set]
I/O methods
Domain specific
Give the UML operation presentation?
Define DBMS?
Define DB model.
69
32.
33.
70
PART B
Client
Proprietor
`
Screen
Window
Something
2. Explain about
protocols?
public,
private
and
protected
71
Protected protocol
Public protocol
Sub class
72
or
instance
names[10]: String
points[2..*]:Point
The multiplicity of 0.1 provides the possibility of null
values: the absence of a value, as opposed to a particular
value from the range.
4. How we are designing methods and protocols?
Explain it.
A class can provide several types of methods
Network Model
A network database model is similar to a
hierarchical database, with one distinction, a network
models record can have more than one parent.
Relational Model
Database Views:
The DBMS provides the database users with a
conceptual representation that is independent of the low
level details (physical view) of how the data are stored.
The database can provide an abstract data model that
uses logical concepts such as field, records, and tables
and their interrelationships.
Database Models
A database model is a collection of logical
constructs used to represent the data structure and data
relationships within the database. Basically, database
models may be grouped into two categories: conceptual
models and implementation models.
Hierarchical models
The hierarchical model represents data as a single
rooted tree. Each node in the tree represents a data object
and the connections represent a parent-child relationship.
75
Three-tiered architecture
76
are
several
competing
DOC
about
multi-distributed
object
77
Open
Database
Connectivity:
Application Programming Interfaces
Multidatabase
DATABASE
MANAGEMENT
3.
4.
5.
6.
Databases
versus
Traditional
79
The process
The process of creating an access class for the
business classes we identified so far follows:
1. For every business class identified, mirror the
business class package.
2. Define relationships.
3. Simplify classes and relationships
3.1. Redundant classes. If you have more than one
class that provides similar services (e.g. similar
Translate request and Translate results), simply
select one and eliminate the others.
3.2. Method classes. Revisit the classes that consists of
only one or two methods to see if they can be
eliminated or combined with existing classes.
4. Iterate and refine.
Another approach is to let the methods be stored in a
program (e.g., a compiled C++ program stored on a file)
and store only the persistent attributes. Here is the
modified process:
80
the
the
81
82
model
83
inheritance
model.
in
the
object
Person Table
Cost Color Make
relationships
Car
Cost
Color
Make
model
model
84
UNIT V
PART A
1. Define GUI?
A graphical user interface (GUI) uses icons to
represent objects, a pointing device to select operations,
and graphical imagery to represent relationships.
2. Define Object Oriented User Interface?
An Object oriented user interface focuses on
objects, the things people use to accomplish their work.
3. What are the two major responsibilities of view layer
objects?
85
87
principal
objectives
of
user
89
PART B
1. State and explain Micro level process?
A user centered interface replicates the users
view of doing things by providing the outcomes users
expect for any action.
The following is the process of designing view (interface)
objects:
1. For every interface object identified in the macro UI
design process apply micro-level UI design rules
and corollaries to develop the UI. Apply design rules
and GUI guidelines to design the UI for the interface
objects identified.
90
Done
91
Input
Output
B
93
94
95
96
99
1.2.
100
101