Loading, please wait ...
Open its course - OOSE Labs
12 GRASP Part 1 By Mukhtiar Zamin
Summary

Summary

1
Teachers with
Mukhtiar Zamin
18
Followers
For Learning
All
Visibility
Security Status
1
Contributions
By Teachers
Notes
  1. Students are auto-evaluated against related topics to ensure they learned it.

Object Design is the most challenging and important part of this course. Better object design is only possible with proper software engineering principles. In this lab you will learn the implementation of the following five GRASP principles:

  1. Controller
  2. Creator
  3. Pure Fabrication
  4. High Cohesion
  5. Indirection

Implimentation of GRASP Principles Part 1 for All, By Mukhtiar Zamin

Controller

Create and commit a controller class of your semester project with methods/operations from operation contracts. if already exists then add your operations of your operation contract to it.

Creator

Create and commit a "Factory" class which will be responsible for creating objects in your whole project for all layers except UI. This will be the only class where "new" keyword is allowed in the code.

Pure Fabrication with High Cohesion

Create a pure fabricated class "Validator", where you will write input validation methods for example isValidEmail, isValidName, isValidDate etc. Validator should return the results in a well defined highly cohesive "Response" object.

Indirection

Create a proxy class to controll the access to a sensitive data object e.g. Account. If request passed a condition then we return actual Account object, Otherwise a FakeAccount object is return.

×

12 GRASP Part 1 Evaluation

To earn PASS status, system is about to evaluate you using multiple choice questions (MCQs) and True/False type questions.

  • CAREFULLY READ THE FOLLOWING INSTRUCTIONS!
  • Make sure you have learned this lecture along with its topics and tutorials.
  • On first evaluation you get 100% marks on correct answer, then on 2nd you get 95% marks and so on.
  • Answer the questions with a gap NOT MORE THAN A MINUTE, Otherwise it will re-start.

I have read above instrucitons and ready for evaluation.
Your's
Status
Not Registered
Teacher
Mukhtiar Zamin
TODO
Please ask your teacher to link related questions for this lecture.
Alert
Your performance monitoring will start when you register in a class of this course.

Questions on

No Linked topics!
Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert