Collection

Definition & Meaning

Last updated 22 month ago

What is a Collection?

In Programming, a set is a category used to symbolize a fixed of comparable facts kind items as a single uNit. These unit Classes are used for grouPing and coping with associated Objects.

A collection has an underlying Records structure that is used for efficient records manipulation and garage. Code readability and preservation improves when collections are utilized in logical Constructs.

What Does Collection Mean?

Collections are designed to institution sure objects with a logical connection. For Instance, a StudentCollection item can be used to hold college pupil details. Details may encompass the total Variety of students or provide a student search facility based totally on Attributes, consisting of call, class or grade.

Collections are used beneath the following situations:

  • Each group detail represents an item with a similar reason.
  • Group size varies dynamically for the duration of runtime.
  • There ought to be get right of entry to to an person detail thru a seek feature primarily based on a specific key.
  • There must be a type or Iteration thru the institution factors.

The .NET Framework offers some of collection types, inclusive of an Array listing, related listing, Stack, Queue or Dictionary. Custom collections can be used when there is an Implementation requirement for a unique or new records shape. This can be completed to Host precise kinds, improve perFormance or modify with the aid of Overriding present collection magNiFicence Functionality. Using custom collections inside the utility structure entails extra development sources.

Selecting the proper kind of series is primarily based on the utilization sample of a collection. Examples include dictionary collection, queue, stack, taken care of dictionary and Generics.

Share Collection article on social networks

Your Score to Collection article

Score: 5 out of 5 (1 voters)

Be the first to comment on the Collection

1701- V4

tech-term.com© 2023 All rights reserved