/// <summary> /// Entry point into console application. /// </summary> static void Main() { // Non-adapted chemical compound Compound unknown = new Compound(Chemical.Unknown); unknown.Display(); // Adapted chemical compounds Compound water = new RichCompound(Chemical.Water); water.Display(); Compound benzene = new RichCompound(Chemical.Benzene); benzene.Display(); Compound ethanol = new RichCompound(Chemical.Ethanol); ethanol.Display(); // Wait for user Console.ReadKey(); }
/// <summary> /// Entry point into console application. /// </summary> static void Main() { // Non-adapted chemical compound Compound unknown = new Compound(Chemical.Unknown); unknown.Display(); // Adapted chemical compounds Compound water = new RichCompound(Chemical.Water); water.Display(); Compound benzene = new RichCompound(Chemical.Benzene); benzene.Display(); Compound ethanol = new RichCompound(Chemical.Ethanol); ethanol.Display(); // Wait for user Console.ReadKey(); }