Question: In C # windows form application Define an interface IShape with a single method: Draw() In a console application add 2 classes, Rectangle and Triangle
In C # windows form application
Define an interface IShape with a single method: Draw() In a console application add 2 classes, Rectangle and Triangle Both class are to implement the interface Ishape. (the drawing should be done on the console using cursor position, write and writeline to display a shape). In Main create a Rectangle object and a Triangle object, then draw both of them to the console.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
