From the course: Learning SOLID Programming Principles

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

More GRASP patterns

More GRASP patterns

- [Instructor] I'd like to continue looking at the single responsibility principle. I want to share some additional ways of identifying the right level of abstraction. To do this, I'll use a few more of the general responsibility assignment software principles. There are a number of principles for determining what counts as responsibility. In previous sections, I talked about the first four: controller, creator, high cohesion, and indirection. In this section, I want to talk about the final two. An information expert has all the data required for a particular process. Pure fabrication is a class that's defined more by the solution technology than the problem domain. And as you can see on this slide, a few other of the GRASP principles are simply part of the solid design principles, so we don't need to rehash those. An information expert parallels the idea of encapsulation, a class that holds all of some body of…

Contents