Mass Variable Assignments

by

in

Mass assignment is a useful feature to assign multiple variables in a single place. We can use it to return the multiple values from the method and this returned value can be assigned by Mass variable assignments.

Don’ts

one = 1 two = 2 three = 3

Do’s

one, two, three = 1, 2, 3

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *