Practice ยท 1 of 4
Polymorphic shapes
CHALLENGE
Difficulty: beginner+25 XP
Implement nested classes inside Solution: abstract Shape with public abstract string Describe();, plus Circle(double radius), Square(double side), and Triangle(double a, double b, double c) โ each overriding Describe() to return exactly "circle r=1" / "square s=2" / "triangle a=3 b=4 c=5" style strings.
Press Submit to check your solution.
Back to lesson: Practice: OOP workout