0% found this document useful (0 votes)
38 views3 pages

Fill in The Blanks: Bidirectional Associations

This document provides definitions and examples related to object-oriented modeling concepts: 1. It defines classes as descriptions of collections of similar objects, and distinguishes between class attributes, which describe a property's possible values, and operations/methods, which define an object's behavior. 2. Links and associations between classes are discussed, as well as multiplicity, which specifies how many objects can participate in a relationship. 3. Inheritance hierarchies and multiple inheritance are explained using diagrams. 4. The differences between aggregation and association are outlined, with aggregation representing a whole-part relationship where parts belong to only one whole.

Uploaded by

praba karan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views3 pages

Fill in The Blanks: Bidirectional Associations

This document provides definitions and examples related to object-oriented modeling concepts: 1. It defines classes as descriptions of collections of similar objects, and distinguishes between class attributes, which describe a property's possible values, and operations/methods, which define an object's behavior. 2. Links and associations between classes are discussed, as well as multiplicity, which specifies how many objects can participate in a relationship. 3. Inheritance hierarchies and multiple inheritance are explained using diagrams. 4. The differences between aggregation and association are outlined, with aggregation representing a whole-part relationship where parts belong to only one whole.

Uploaded by

praba karan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Fill in the blanks

1. A class describes a collection of similar....objects...................

2. A ……link…… is a physical or conceptual connection between objects.

3. A link is also defined as an instance of an …association………….

4. ........Bidirectional associations............. in an association specifies how many objects


participate in a relationship.

5. The notation for .......inheritance(a hierachy of abstractions)............ is a triangle


connecting a super class to its subclasses.

6. In ..........multiple......... inheritance, one class is inherited from more than one class.

7. A ___inheritance_____ relationship is rendered as a solid line with a hollow arrow head


pointing to the parent.

Choose the best answer


1. Which one of the following is not principal of modeling? [ b]

a) Choose your models well√

b) Every model may not be expressed at different at different levels of decision

c) The best models are connected to reality.√

d) No single model is sufficient.√

2. Which one of the following view express the requirements of the system?a

a) USE CASE b) Design c) Process d) Implementation.

3. W build models so that we can better _ b______ the system we are developing.

a) Misunderstand b)understand c) guide d)misguide.

4. An object contains _____a___ [ ]

a) Attributes & Methods b) only attributes c)Only Methods d)Classes

5. The best models are connected to ___a_____.

a) Reality b) Functionality c) Causality d) visuality.

Brief Question’s
1. What is a class? Make distinction between attributes and operations.

A class is a description of a set of objects that share the same properties and behavior.

An attribute is a named property of a class that describes a range of values instances of


the proA class diagram shows your classes and their relationship.While,an object diagram
shows the interactions between objects at some point during run time.

perty may hold.A class may have any number of attributes or no attributes at all.A class
may have any number of attributes or no attributes at all.

An operation is the implementation of a service that can be requested from any object of
the class to affect behavior.A class may have any number of operations or none at all.

2. Describe the differences between the notations of class and object respectively.
Classes notation includes name, attributes and operations respectively, all objects
in a class share the same operations or methods class notation don’t need values for
attributes but object notation you need to write values.
3. Illustrate the concept of objects and classes with examples.

For example,the class is the student,it has attributes that age,sex,hobby and so on ,while

the object is the XiaoMing,20 years old,boy,liking playing piano.

4. What does multiplicity in an association specify?

For example, n n
custom bread
A custom to n bread,while a bread to n customs.

5. What is multiple inheritance? Illustrate with example.

A class can inherit from several other classes.

FlyingThing Animal

Airplane Helicopter Bird Wolf Horse

6. What is aggregation? How is it different from association? Discuss.

A special form of association that models a whole-part relationship between an


aggregate(the whole )and its parts.

Aggregation is a specialized form of ASSOCIATION in which a whole is related to its parts;It


is known as a “part of “or containment relationship and follows the “has a”
relationship.Three ways to think about aggregations:whole-parts;container-
contents;group-members.While the association is a stronger form of AGGREGATION.The
parts may belong to only ONE whole.The parts are usually expected to “live” and “die”
with the whole (“cascading delete”)So the aggregation is the whole-parts,but the
association is only one part.

7. What is multiplicity? Discuss with example.什么是多样性?用例子表示

For example, n n
custom bread
A custom to n bread,while a bread to n customs.

8. Explain the concept of class attributes and operations with example.


9. Difference between class and object .

Class diagram consists of classes and their relationships,is a static diagram,represents the
static view of an application,describes the attributes and operations of a
class.Meanwhile,the class diagrams are widely used in the modeling of object oriented
systems because they are the only UML diagrams,which can be mapped directly with
object-oriented languages ,which is also known as a structural diagram.While an object is
an entity.Attributes or properties describe object’s state(data )and methods(propertied or
functions)define its behavior.It knows things (has attributes)and does things(provides
services or has methods)

10. Difference between aggregation and composition.

a. Aggregation:part can be shared by several wholes,while composition part is


always a part of a single whole;

b. Aggregation parts can live independently,while composition parts exit only as


part of the whole;

c. Aggregation whole is not solely responsible;while composition whole is


responsible and should create/destroy the objects.

You might also like