public override void Display() { bank = new ChemicalDatabank(); boilingPoint = bank.GetCriticalPoint(chemical, "B"); meltingPoint = bank.GetCriticalPoint(chemical, "M"); molecularWeight = bank.GetMolecularWeight(chemical); molecularFormula = bank.GetMolecularStructure(chemical); base.Display(); Console.WriteLine(" Formula: {0}", molecularFormula); Console.WriteLine(" Weight: {0}", molecularWeight); Console.WriteLine(" Melting Pt: {0}", meltingPoint); Console.WriteLine(" Boiling Pt: {0}", boilingPoint); }
public override void Display() { _bank = new ChemicalDatabank(); _boilingPoint = _bank.getCriticalPoint(_chemical, "B"); _meltingPoint = _bank.getCriticalPoint(_chemical, "M"); _molecularWeight = _bank.GetMolecularWeight(_chemical); _molecularFormular = _bank.GetMolecularStructure(_chemical); base.Display(); Console.WriteLine(" Formula: {0}", _molecularFormular); Console.WriteLine(" Weight : {0}", _molecularWeight); Console.WriteLine(" Melting Pt: {0}", _meltingPoint); Console.WriteLine(" Boiling Pt: {0}", _boilingPoint); }