Task :
Define a class Bubble with data member's static int objCount and 2D integer array mat [10] [10] and 2 integer members rows and cols.
Define a default constructor which will increment objCount when an object is created & display it also define a user defined constructor which is used to set the values of rows and cols for mat and increment objCount when an object is created & display it & also define a destructor which will decrement objCount & display it.
Define a member function populate to fill 2D array with the random numbers up to 100 with rows and cols set by constructor & also display function to show mat in matrix form.
Now define a friend function sort which will sort the 2D array mat in ascending order(Use any sorting technique like bubble sort).
In the main function create 2 Bubble objects. Populate both of them, then display them one by one. Then sort these matrices and display again.
NOTE :Implement the following program in C++ Language.