Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Point
- {
- public string data;//информационное поле
- public Point next;//адресное поле
- public Point()//конструктор без параметров
- {
- data = null;
- next = null;
- }
- public Point(string d)//конструктор с параметрами
- {
- data = d;
- next = null;
- }
- public override string ToString()
- {
- return data + " ";
- }
- }
- var p = new Point("test point");
- Console.WriteLine($"Point: '{p}'");
- public virtual String ToString()
- {
- return GetType().ToString();
- }
Add Comment
Please, Sign In to add comment