Program to create shape class,with subclasses circle,triangle, square with functions draw() and erase()

Create using polymorphism concepts

9/3/2019 5:38:01 PM

mary uiru

4 Answers

New Answer


Hello, 😊 If you need help you can post the code you are struggling with!  • SEARCH for similar QUESTIONS or ANSWERS before posting  • Include relevant TAGS Do not ask someone else to do it for you!!?  • https://www.sololearn.com/post/75089/?ref=app  • https://code.sololearn.com/WvG0MJq2dQ6y/


Show your attempt else you are asking others to code for you. In that case there is no point in you learning to code in the first place


I can't figure out how to use the polymorphism concepts


Public Shape ( String circleShape; String triangleShape; String squareShape; ) String circleShape=circle; String triangleShape=triangle; String squareShape=square; Public void draw (circle) Public static void main(String ()args) ) )