Certainly! Here's a basic README for your GitHub repository:
This repository contains examples of Gang of Four design patterns implemented in Java. Each design pattern is categorized based on its type: creational, structural, and behavioral.
The Factory Method pattern provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created.
- Region.java: The Region factory needs implementation of the abstract method renderFirstLife(), wich returns a moss.
- Demo.java: Initialize the example above.
Abstract Factory is a creational design pattern, which solves the problem of creating entire product families without specifying their concrete classes.
- GamerPcFactory.java: The GamerPcFactory is a factory that uses the Processor interface and the storage Interface, agnostic of which model the pc is using.
- Demo.java: Initialize the example above.