implements keyword in java

The ” implements ” keyword is used to make a class to follow the contract defined by an interface. The implemented class should provide concrete implementation for the methods declared in the interface. If not, the class should be abstract. Example interface Shape{   public double getArea();   }   Class Circle implements Shape{   […]

Share this article on