using System;
/*
Create classes Point and Interval with method for setting visibility (invisibility) and method for moving on the plane. Give your suggestions about relations between classes (is-a, has-a, use-a, etc.). Find solution for avoiding of duplicate code. Write well commented code with examples of using these classes.
Write code for reading and writing collection of these objects from (into) file.
Find object which is on the maximum distance from origin.
Write code for handling the incorrect format of incoming file.
*/
public interface IProp
{
string Visibility(string k);
void Move();
}
public class Point : IProp
public string Visibility(string k)
return k;
public void Move()
public class Interval : IProp
public void Visibility()
public class Program
public static void Main()
List<Point> list = new List<Point>();
list.Add(new Point());