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: Yes, this example of an abstract class hierarchy has a superclass AbstractShape that includes a concrete moveTo(int, int) method that will be inherited by any subclass. It also includes an abstract double getArea() method that must be implemented by any concrete subclass. The implementation of the getArea() method is different in the Circle and Square subclasses.

… full answer hidden

Click for full answers

Premium members click below for full answer
Can you give an example of an abstract class?

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