Creating objects

To create an object you need to:
  • Declare a reference. For example:
       TSQ tsq;
     
  • Use the new operator to create an object:
       tsq = new TSQ()
     
  • Use the setName method to give the object a name:
       tsq.setName("JCICSTSQ");