title: How to Construct an Object with an Arraylist as Parameter?
body: <p>I want to implement a class for Museum objects.
  Each museum Has a name and can contain different Art objects.</p>
  
  <p>Art Objects are implemented within another class
  Each Art Object has 3 attributes (name, artist, value)</p>
  
  <pre><code>class Pieces_of_art {
      private String name;
      private String artist;
      private float value;
  
      Pieces_of_art(String name, String artist, float value) {
          this.name = name;
          this.artist = artist;
          this.value = value;
      }
  }
  
  class museum {
      Arraylist&lt;Pieces_of_art&gt; set = new ArrayList&lt;&gt;();
      //Initializing Arraylist with type "Piece_of_art" called set and it's empty?
      String name;
  
      museum(String name, Arraylist&lt;Pieces_of_art&gt; set) {
          this.name = name;
          set = new ArrayList&lt;Piece_of_art&gt;();
      }
  }
  </code></pre>
  
  <p>I don't really understand how it is possible to use and arraylist within a constructor as an empty parameter</p>