Package edu.pdx.cs410J.lang
Class DoIFly
java.lang.Object
edu.pdx.cs410J.lang.DoIFly
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 Summary
-
Method Summary
-
Constructor Details
-
DoIFly
public DoIFly()
-
-
Method Details
-
main
This main program creates several animals and then prints out whether or not they can fly.
-