1. A class Collection contains an array of 100 integers. Using the following class description, create an array with common elements from two integer arrays. Some of the members of the class are given below: Class name : Collection Data members : ar[] : integer array of 100 elements len : length of the array Member methods : Collection() : default constructor Collection(int ) : parameterized constructor to assign the length of the array void input() : reads array elements Collection common(Collection): return the Collection containing the common Elements of current Collection and the collection object passed as parameter. void display() : displays the array Collection elements Write the main() method to generate the necessary output
Answers
Answered by
0
Mark me as brainliest please please
Attachments:
Similar questions