Class DoIFly

java.lang.Object
edu.pdx.cs410J.lang.DoIFly

public class DoIFly extends Object
This class demonstrate the instanceof operator and the concept of interfaces using the animal hierarchy. It uses the instanceof operator to determine whether or not an animal implements the Flies interface.
  • Constructor Details

  • Method Details

    • main

      public static void main(String[] args)
      This main program creates several animals and then prints out whether or not they can fly.