static void Main(string[] args) { Console.WriteLine("Hello World!"); TSquare sq = new TSquare(); int side = int.Parse(Console.ReadLine()); sq.GetSide = side; Console.WriteLine(sq.GetSide); sq.newSquare(6); Console.WriteLine(sq.ToString()); TSquare sq1 = new TSquare(); sq1.GetSide = 6; TSquare sq3 = sq1 * 3; Console.WriteLine(sq3.GetSide); TCube sq2 = new TCube(); sq2.GetSide = 4; Console.WriteLine(sq2.FindV()); }
public void CopySquare(TSquare previoussquare) { a = previoussquare.a; }