package exp3; public class LineDemo { public static void main(String args[]){ Line line = new Line(50,50); System.out.println("\n"+line.toString()); } }