Write any two differences between a collection and a set.
Two differences between a collection and a set :
A well-defined collection is called a set. Whereas, a collection of objects may or may not be well defined.
In a set there cannot be a repetition. But the objects can be repeated in a collection.
For example: The collection of good cricketer is a collection but not a set.
Thus, two differences between a collection and a set.
A well-defined collection is called a set. Whereas, a collection of objects may or may not be well defined.
In a set there cannot be a repetition. But the objects can be repeated in a collection.