CSS font stacks & developer FAQs with Web standards
Site navigation below

One of hundreds of answers available with our premium content service.

Part answer

A: Simple examples are not always strong examples, but this case shows an AreaInterface with a single method getArea() and how that is implemented in ConcreteCircle, ConcreteSquare and ConcreteRectangle classes.

public interface AreaInterface {

  double getArea();
}
    

… full answer hidden

Click for full answers

Premium members click below for full answer
Can you show how to implement an interface?

Home · Web fonts · Font stacks · FAQs · Java · CSS · Javascript · HTML · Site manager