Class Shape

java.lang.Object
Shape

public abstract class Shape
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Shape()  
  • Method Summary

    Modifier and Type Method Description
    abstract double calculateArea()
    Get area of Shape
    abstract double calculatePerimeter()
    Calculate perimeter of Shape
    void draw()
    print info f Shape
    abstract boolean equals​(java.lang.Object obj)  
    abstract int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • calculatePerimeter

      public abstract double calculatePerimeter()
      Calculate perimeter of Shape
      Returns:
      perimeter of Shape
    • calculateArea

      public abstract double calculateArea()
      Get area of Shape
      Returns:
      area of Shape
    • draw

      public void draw()
      print info f Shape
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • equals

      public abstract boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public abstract int hashCode()
      Overrides:
      hashCode in class java.lang.Object