First, you will need to define a canvas class with the followingmember attributes and functionality: char arr[MAX_ARRAY][MAX_ARRAY]- this is your new 2D array for all painting. It should be private.int rows – this should be private, it denotes how many rows make upyour drawing. It should be less than MAX_ARRAY. int cols – thisshould be private, it denotes how many columns make up yourdrawing. It should be less than MAX_ARRAY. void print() – thisfunction needs to be accessible by everyone. It will need to loopover your arr and print all data to the console. voidpaint_pixel(int row, int col, char pixel)
PayPal Gateway not configured
PayPal Gateway not configured