title: Mapping integer to object gives error "cannot resolve overloaded constructor"
body: <p>I am trying to map integer to object in Scala. I am new to Scala, so I am facing this error "cannot resolve overloaded constructor Item". Please help in resolving this error.</p>
  
  <pre><code>object Main extends App {
    override def main(args: Array[String]): Unit = {
      val listMap1: ListMap[Int, Item] = ListMap(1 -&gt; new Item("mobile", 25000, 1) )
  
    }
  }
  </code></pre>
  
  <p>This error I am getting in this part:</p>
  
  <pre><code>new Item("mobile", 25000, 1)
  </code></pre>
  
  <p>This is my class Item:</p>
  
  <pre><code>class Item (name: String, price: Int, id: Int){
    def this(name: String, price: Int, id: Int) = {
      this(name,price,id);
    }
  }
  </code></pre>