In: Computer Science
What are CRC cards and use-case scenarios used for in object-oriented analysis and design?
CRC Card:
Class Responsibility Collaboration. They are
simple to easy create and easy to learn. They are used when we have
to brainstorm our minds to decide the design of an object oriented
software Each CRC card represents a class.
A card has its own CRC term
First C is the class name
R is the responsibilities that class has (Responsibility cover
3/4 of your card from the left)
Last C is the collaborators.
On the left hand side we always have Responsibilities and on the
right side we have collaborators. e.g
Class Name: Payment
Responsibilities | Collaboration
Store payment details | Order
validate payment |
Use-Case Scenarios:
Use case scenarios are used to describe what users will be using the software in a plain diagram the users in use case scenarios are called as actors . A use case diagram consist of a box inside the box all functions are described and outside the box we label are actors and then we join them with one-another. A basic use case diagram is used to map the functions to its actors it help us to understand what function of the class is for which person. It is very helpful in object oriented analysis in design it's suggested to create a use case diagram for a project to firstly understand the working later on we make extended use case of all the functions which are defined to understand the pre-conditions , post-conditions , functionality of that particular function and its description.
IF YOU HAVE ANY QUERY PLEASE COMMENT DOWN BELOW
PLEASE GIVE A THUMBS UP