Computer Science, asked by sannyashi2773, 4 months ago

- 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/ instance variables: -
arr[ ] :integer array
len: length of the array
Member functions: -
Collection ( ): default constructor
Collection(int): parameterized constructor to assign the length of the array
Specify the class Collection giving the details of the constructors, void inparr() and void arrange().
Collection common (Collection).
void inparr( ): to accept the array elements.
Collection common (collection): returns a collection containing the common elements of
current collection object and the collection object passed as a parameter
void arrange ( ): sort the array elements of the object containing common elements in ascending order using any sorting technique.
void display ( ):display the array elements.

Answers

Answered by sandrabertinchoices
0

Answer:

common element in ascending order

sort the array elements of the object containing

Similar questions