✅ Factory Method Pattern
Does someone have a good explanation or perhaps a link to somewhere where i can learn this? Been trying to find a video or similar but it just doesn't stick :(
var x = new Product("Apple", 15, 3.5); etcnew Product("Apple", 15, 3.5) part15 and 3.5 should be15 is the "Product ID", and that should be an incremeneted number. It would be silly to expect the programmer to constantly keep track of the current ID and manually give itabstract class/interface?
FactoryBase here is your abstract factoryBase suffix and the title is in italicsConcreteSomething
Car
Car would be an abstract base class, not an interface, but otherwise it would fulfill the same role as "Chair" does in the above imageCar in the project
var x = new Product("Apple", 15, 3.5);new Product("Apple", 15, 3.5)15153.5abstract class/interfaceFactoryBaseBaseConcreteSomethingCarCarCarnamespace Creational.FactoryMethodPattern.Cars
{
public abstract class Car
{
}
}