Build six classes: Shape, Triangle, Rectangle, Pentagon,Hexagon, and a shape of your choosing. Write all your client/testcode in DrawShapes.java. Write Javadoc comments as you go for allyour shape classes. Make sure all shapes display correctly.
Use principles of inheritance and polymorphism by using theparent Shape class to put data and methods that are common to allshapes, but overriding those methods as needed in the childclasses. Reduce any unnecessary repetition of code in the childclasses. Make two modifications to the ShapeDisplayer code: Modifythe code so that your name appears in the title of the window. Inthe paintComponent() method, which does the drawing
PayPal Gateway not configured
PayPal Gateway not configured