You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2021. It is now read-only.
* The card factory serves as a factory for all the beancards.
* CardFactory will generate all cards, and so, we will explore the factory pattern.
* A factory ensures that there is only a single unit in the program that is responsible to create and delete cards. Other parts of the program will only use pointers to access the cards.
* Note that means, we will delete the copy constructor and assignment operator in Card.
*/
class CardFactory {
public:
/* Returns a pointer to the only instance of CardFactory*/