@glennyisbae/

Interfaces

Java

No description

fork
loading
Files
  • Main.java
  • Bird.java
  • BuzzLightyear.java
  • Flyer.java
  • Missile.java
Main.java
1
2
3
4
5
6
7
8
9
10
class Main {
  public static void main(String[] args) {
    Bird evan= new Bird();
	BuzzLightyear buzz= new BuzzLightyear();
	Missile bigBoi= new Missile();
	Flyer[] x= {buzz, evan, bigBoi};
	for (int i=0; i<x.length; i++)
	x[i].fly();
  }
}