In this slide contain details of CRC Card (class responsibility collaboration) , and 6 examples of CRC card ,advantages and disadvantages, and how to make CRC card.
High Profile Escorts Nerul WhatsApp +91-9930687706, Best Service
Ooad presentatin crc cards
1.
2. A brainstorming tool used in the design of object-oriented software.
A collection of standard index cards that have been divided into three sections
1. A class represents a collection of similar objects.
2. A responsibility is something that a class knows or does.
3. A collaborator is another class that a class interacts with to fulfill its
responsibilities.
The cards are arranged to show the flow of messages among instances of each
class.
CRC stands for Class, Responsibilities, Collaborations
What is CRC card ?
3. Originally proposed by Ward Cunningham and Kent Beck as a teaching tool, but
are also popular among expert designers and recommended by extreme
programming supporters.
4. Martin Fowler has described CRC cards as a viable alternative to UML sequence
diagram to design the dynamics of object interaction and collaboration.
5. Create a card for each class
Assign responsibilities and attributes to each card
Identify collaborations between cards
Simulate design scenarios between sets of cards
BASIC IDEAS
6. Portable: cards can be used anywhere, even away from the computer or office
Anthropomorphic: no computer program can capture the essence of the
interactions forced by passing the cards
Level of involvement felt by each team member increases
Useful throughout the life cycle
Provides a basis for more formal analysis and design methodologies
Serves as input to a formal method (i.e., a starting point)
Ease the transition from process orientation to object orientation - most
formal methods are overwhelming
Gives a general bound on the size of a class - a card
ADVANTAGES
7.
8.
9. Define class role
Provide one unique responsibility
Identify collaborators (Clients and Services)
Prepare a CRC card for each identified class
17. 1) Macho Class
2) Duplicate Functionality
3) Difficulty in Defining Responsibilities
4) No Clear Role is Defined
5) Hard to Map CRC Cards to Class Diagram
Major Problems with Existing CRC Cards