Submitted Questions

  • Creating list of objects

    Which is better one to follow1.Creating object every time passing values as a parameters to constructor and add to the listor2.Create it once i.e, default constructorand assign values to properties and add it to the list

    v_n_r

    • Dec 23rd, 2009

    If the values are constant and known then, Create object once i.e, default constructor and assign values to properties and add it to the list.If the values are changing or the values are given at the ...