Traditional Culture Encyclopedia - Hotel reservation - Abstract factory problem (C# language)

Abstract factory problem (C# language)

Hehe, you can tell at a glance that it is a "hotel management system".

It seems that you are not an abstract factory and have no abstract modifiers.

First, check whether your app.config configuration file is placed in the presentation layer, whether to add references, and whether to import namespaces.

Secondly, I remember writing a static method in the factory class to judge the keys in appSettings, but not both.

The best way is to use two physical factories to inherit the abstract factory and make examples of room type and room type information respectively.

I don't know how to describe the rest, hehe, I understand more.