-
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
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
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.