title: String constructor parameter
body: <p>I came across this question in a Java exercise and I keep getting a memory address printed.</p>
  
  <p>Write code for the following class; </p>
  
  <pre><code>public class MyClass 
  { 
  
  } 
  </code></pre>
  
  <p>such that the printed result of: </p>
  
  <pre><code>MyClass cls = new MyClass("Test Class"); 
  System.out.println(cls); 
  </code></pre>
  
  <p>will be "Test Class". </p>
  
  <p>(You will need to write the whole class, and use a parameter in the constructor in your answer).</p>