Docsity

cmsc132 - java prgram, Cheat Sheet of Object Oriented Programming

Partial preview of the text

Download cmsc132 - java prgram and more Cheat Sheet Object Oriented Programming in PDF only on Docsity!

Java Interfaces (Review)

CMSC 132

Java Interfaces

Example: interfaceExample Main points:

  • Declaring an interface
  • Default method implementation (NEW)
  • Classes that implement an interface (or multiple interfaces)
  • Polymorphic variables
  • Dynamic dispatch
  • Polymorphic collections