Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The Task: I have multiple shapes. Each shape does something different depending on what it is. For example: Shape Prints I am a shape!
The Task: I have multiple shapes. Each shape does something different depending on what it is. For example: Shape Prints "I am a shape! Shapes are cool" Prints "Shape" 5 times O Triangle O Circle Prints "I am a triangle" Prints "I have 3 sides" 3 times Prints "I am a shape! Shapes are cool" Prints "Shape" 5 times Prints "I am round Prints "I like to roll!" 7 times Prints "I am a shape! Shapes are cool" Prints "Shape" 5 times Rectangle Prints "I am a rectangle... who has 4 sides" Prints "I am a shape! Shapes are cool" Prints "Shape" 5 times What You Need to Do: Your job is to implement the code (as specified above). An example output would be: If I called these methods in main... static void main(string[] args) { new Rectangle (); new Triangle (); new Circle(); } I am a rectangle...who has 4 sides I am a shape! Shapes are cool! Shape Shape Shape Shape Shape I am a triangle I have 3 sides I sides I have 3 sides I am a shape! Shapes are cool! Shape Shape Shape Shape Shape I am round... I like to roll! I like to roll! I like to roll! I like to roll! I like to roll! I like to roll! I like to roll! I am a shape! Shapes are cool! Shape Shape Shape Shape Shape
Step by Step Solution
There are 3 Steps involved in it
Step: 1
It seems like you want to implement a program with different shapes Triangle Circle Rectangle each h...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