Advertisement

Interfaces, Inheritance, and Polymorphism

  • Mitsunori Ogihara
Chapter

Abstract

An interface is a template for building a Java class. The components of an interface are static methods, constants, and abstract methods. An abstract method is a method header followed by a semicolon and is without a body. All abstract methods have public visibility. An abstract method specifies only its syntax, but not its semantics.

Copyright information

© Springer Nature Switzerland AG 2018

Authors and Affiliations

  • Mitsunori Ogihara
    • 1
  1. 1.Department of Computer ScienceUniversity of MiamiMiamiUSA

Personalised recommendations