אפשר בבקשה הסבר על כל קוד מה הוא עושה.
אם אפשר הסבר ליד הקוד בצורה של הערות.תודה.
קוד:. using System;public class CRectangle { private int height, width; public void SetHeight(int newHeight) { height = newHeight; } public void SetWidth(int newWidth) { width = newWidth; } public int GetHeight() { return height; } public int GetWidth() { return width; } } public class CClassExample1 { public static int Main(string[] args) { CRectangle rec1 = new CRectangle(); rec1.SetHeight(10); rec1.SetWidth(20); Console.WriteLine("Rectangle size: {0} x {1}", rec1.GetHeight(), rec1.GetWidth()); return 0; } }



ציטוט ההודעה




