title: How do I pass a constructor to a constructor?
body: <p>The question says "Add a constructor to the Point class that accepts another Point as a parameter and initializes the new Point to have the same (x, y) values. Use the keyword this in your solution."</p>
  
  <pre><code>public  class Point
  {
    int x;
    int y;
    //enter your code here
  }
  </code></pre>
  
  <p>What I have applied all the concepts I can think of and hit and trial method,but none of them  worked. I mean how can I pass a constructor to a constructor! 
  This is the best I came up with.</p>
  
  <pre><code> public Point(Point)
   {
       this.x=x;
       this.y=y;
    }
  </code></pre>
  
  <p>But this generates an error. 
    "&lt; identifier> expected
  public Point(Point)"</p>