How user4000/tj-polymorphism-test works
Project type and purpose
• This is a single‐project, monolithic Windows Forms (.NET) desktop application built with Telerik UI controls.
• Its stated purpose is “Learning polymorphism”: it demonstrates polymorphic behavior in C# via a simple UI front end and a small “Experiment” engine.
File structure
• Top‐level: Solution (SolutionPolymorphismTest1.sln) containing one C# project (ProjectPolymorphismTest1.csproj).
• “Presentation” layer:
• RadForm1.Designer.cs / RadForm1.cs / RadForm1.resx – the Telerik WinForms UI.
• Program.cs – application entry point that creates and runs the main form.
• “Domain”/Experiment layer (folder Experiment):
• CxExperiment.cs – orchestrates experiments.
• CxAnimal.cs, CxClassA.cs, CxClassB.cs – concrete classes illustrating polymorphic overrides.
• Interfaces:
• ICanDoWork.cs – defines work behavior.
• IOutputMessage.cs – defines how to output messages.
• Utilities & Infrastructure:
• CxTextWriter.cs – a text‐writing helper implementing IOutputMessage.
• MySettings.cs + App.config + Settings.* – configuration storage.
• Misc: packages.config (Telerik UI dependencies), app.manifest, Properties folder (assembly metadata, resources).
Key architectural insights from README
• No external services, no database.
• Core goal: a teaching/demo app that wires UI to domain code via interfaces to illustrate polymorphism.
Detail
• .cs component in its respective layer.
• That Program.cs is the entry node.
• Configuration and NuGet packages as supporting nodes.