Question
5. Solution must be in C# Create an application named TurningDemo that creates instances of four classes: Page, Corner, Pancake, and Leaf. Create an interface
5. Solution must be in C#
Create an application named TurningDemo that creates instances of four classes: Page, Corner, Pancake, and Leaf.
Create an interface named ITurnable that contains a single method named Turn(). The classes named Page, Corner, Pancake, and Leaf implement ITurnable.
Create each classs Turn() method to display an appropriate message. For example:
* The Pages Turn() method should display You turn a page in a book.
* The Corners Turn() method should display You turn corners to go around the block.
* The Pancake's Turn() method should display You turn a pancake when it's done on one side.
* The Leaf's Turn() method should display A leaf turns colors in the fall.
TurningDemo.cs+ 1 using static System.Console; 2 class TurningDemo 4 static void Main() // Your code here 6 7 8
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started