Computer Science, asked by yashasvibakshi81, 9 months ago

Design a class Pattern to overload a function shape()as follows: void shape(int n, char ch) : with one integer argument and one character type argument that draws a filled square of side n using the character stored in ch. void shape(int x, int y) : with two integer arguments that draws a filled rectangle of length x and breadth y, using the symbol ‘#’ void shape() : with no argument that draws a filled triangle shown below. Take ‘n’ as number of line from user

Answers

Answered by Anonymous
0

♥-Use function overloading for each of the given shapes. Q6. ... Design a program to overload a function rect() void rect(int n,char ch) With one integer argument and one character ...

Answered by keyboardavro
0

Answer:

Explanation:

Use function overloading for each of the given shapes.

Similar questions