0
class name : Collection
Data members/instance variables
arr[ ] : integer array
len : length of the array
Member functions
collection ( ) : default constructor
collection ( int ) : parameterised constructor to assign the
length of the array
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
Specify the class collection giving the details of the constructors, void imparr( ) and void arrange( ), Collection common(collection). You need not write then main function.
Data members/instance variables
arr[ ] : integer array
len : length of the array
Member functions
collection ( ) : default constructor
collection ( int ) : parameterised constructor to assign the
length of the array
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
Specify the class collection giving the details of the constructors, void imparr( ) and void arrange( ), Collection common(collection). You need not write then main function.
arjun
Mar 14, '15
3 answers
-1
I would certainly help you Arjun but you need to give it a try first. Try it once and if it doesn't work, post your code here. I'll help you with the solution.
khanmansoor
Mar 14, '15
0
please its urgent and i dont have much time
atleast give me code for the collection common method
arjun
Mar 14, '15
0
Log in to your account to answer this questions.