From a9c968955868638fea682a96ade80b6380b1a392 Mon Sep 17 00:00:00 2001 From: Jacob Stoebel Date: Sat, 21 Dec 2019 14:15:07 -0500 Subject: [PATCH] update readme for factory --- factory/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/factory/README.md b/factory/README.md index fb09368..dbb32fc 100644 --- a/factory/README.md +++ b/factory/README.md @@ -1,4 +1,4 @@ -The Factory Pattern provides a way for a client to instantiate different object without having to know which classes they need. The objective is to provide a simple interface that doesn't need to change when new classes are added or removed. +The Factory Pattern provides a way for a client to instantiate different objects without having to know which they need. The objective is to provide a simple interface that doesn't need to change when new classes are added or removed. To take a trivial example, let's say I am building an app for a university. I have two classes `Student` and `Faculty` who share a common interface. ```ruby @@ -31,7 +31,7 @@ class Faculty < Person end ``` -Let's also say that, for reasons that escape us, we don't want to make a single interface for creating instances of both classes: +Let's also say that we want to make a single interface for creating instances of both classes: ```ruby class PersonFactory