diff --git a/05libraries/sec01DesigningClasses.md b/05libraries/sec01DesigningClasses.md index 961938943..807927cf4 100644 --- a/05libraries/sec01DesigningClasses.md +++ b/05libraries/sec01DesigningClasses.md @@ -429,7 +429,7 @@ std::unique_ptr DataManagerFactory(std::vector &v) { if(v.size() < 1000) { - return std::make_unique(v); + return std::make_unique(v); } else { @@ -439,7 +439,7 @@ std::unique_ptr DataManagerFactory(std::vector &v) ``` - `AbstractDataManager` is an abstract base class -- `ShortDataManager` and `LargeDataManager` are two concrete classes which inherit from `AbstractDataManager`, and are optimised for dealing with data on different scales. +- `SmallDataManager` and `LargeDataManager` are two concrete classes which inherit from `AbstractDataManager`, and are optimised for dealing with data on different scales. - The factory uses the size of the data being passed in to make a decision about the approach that is going to be taken. The size of the vector is only known at runtime. ## Implementing Multiple Interfaces