Академический Документы
Профессиональный Документы
Культура Документы
Ans.1 Generalization
top of the diagram. The more specific classes are called subclasses
and are generally placed below the superclass.
Ans.3 Association
Association is a relationship between two objects. In other
words, association defines the multiplicity between objects.
You may be aware of one-to-one, one-to-many, many-to-
one, many-to-many all these words define an association
between objects. Aggregation is a special form of
association. Composition is a special form of aggregation.In
a one-way association, the first class has a reference to an
object of the second class, but the second class does not
have a reference to an object of the first class. In a two-way
association, each class contains a reference to an object of
the other class.
• Sequence Diagram
• Collaboration Diagram
• Statechart Diagram
• Activity Diagram
Part B
Q:-5 Write short notes on any four:
(i) DFD and its features
Data flow diagrams illustrate how data is processed
by a system in terms of inputs and outputs.
FEATURES OF DATA FLOW DIAGRAM
1. All processes must have at least one data flow in
and one data flow out.
2. All processes should modify the incoming data,
producing new forms of outgoing data.
3. Each data store must be involved with at least one
data flow.
4. Each external entity must be involved with at least
one data flow.
5. A data flow must be attached to at least one
process.
Instance
Method
Message passing
Abstraction
Encapsulation
Inheritance
Each subclass can alter its inherited traits. For example, the
Collie subclass might specify that the default furColor for a
collie is brown-and-white. The Chihuahua subclass might
specify that the bark() method produces a high pitch by
default. Subclasses can also add new members. The
Chihuahua subclass could add a method called tremble().
So an individual chihuahua instance would use a high-
pitched bark() from the Chihuahua subclass, which in turn
inherited the usual bark() from Dog. The chihuahua object
would also have the tremble() method, but Lassie would not,
because she is a Collie, not a Chihuahua. In fact, inheritance
is an "a… is a" relationship between classes, while
instantiation is an "is a" relationship between an object and a
class: a Collie is a Dog ("a… is a"), but Lassie is a Collie ("is
a"). Thus, the object named Lassie has the methods from
both classes Collie and Dog.