title: Whether to use var or let during instances creation in Swift?
body: <p>What should be used to create the instances of classes in Swift and why?</p>
  
  <p>please explain the usage of let and var during the instances creation in Swift</p>
  
  <p>below is the code :-</p>
  
  <pre><code>class ConstantTest{
      let constant: String
      init(constant: String) {
          self.constant = constant
      }
      func printConstant() {
          print(constant)
      }
  }
  
  let constanttest = ConstantTest(constant: "Hello")
  constanttest.printConstant()
  
  var test = ConstantTest(constant: "Hie")
  test.printConstant()
  </code></pre>