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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!