/// <summary> /// Выводит на экран информацию о окружности /// </summary> public override void ShowInfo() { Console.WriteLine(Name + ":\n" + Centre.ToString() + "\nColour-" + Colour + "\nRadius: " + Radius + "\nPerimetr=" + GetPerimetr() + "\nSquare=" + GetSquare() + "\n"); }
/// <summary> /// Выводит на экран информацию о квадрате /// </summary> public override void ShowInfo() { Console.WriteLine(Name + ":\n" + Centre.ToString() + "\nColour-" + Colour + "\nSides: " + Sides[0] + "," + Sides[1] + "," + Sides[2] + "," + Sides[3] + "\nPerimetr=" + GetPerimetr() + "\nSquare=" + GetSquare() + "\n"); }
/// <summary> /// Override of ToString method. /// </summary> /// <returns></returns> public override string ToString() { return(String.Format("EdgeKey: (gEdge={0}, centre={1}, vertex={2})", Edge.ToString(), Centre.ToString(), Vertex.ToString())); }