An array is a named collection of several data of a particular datatype which gets stored at a particular location. In OOP, an array is an inbuilt class which has its own object and can be used to access different elements using a particular variable.