forked from abdu8220/CISC230
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bird.java
31 lines (28 loc) · 936 Bytes
/
Bird.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* @author Johnathan Marin-Romero
* @version 1.0
* @since 4/26/16
*/
public class Bird extends Animal
{
public int FlightSpeed;
public int Wingspan;
public int getFlightSpeed(){
return FlightSpeed;
}
public int getWingspan(){
return Wingspan;
}
public Bird(int Age, String Birth_method, String Consevervation_status, String Diet, boolean Flight, String Habit, boolean heathly, int height, String Last_Checkup, int Length, int Lifespan, String Location, String Name, int Weight, int FlightSpeed,int Wingspan){
super(Age, Birth_method, Consevervation_status, Diet, Flight, Habit, heathly, height, Last_Checkup, Length, Lifespan, Location, Name, Weight);
this.FlightSpeed = FlightSpeed;
this.Wingspan = Wingspan;
}
public String toString()
{
String info = super.toString();
info += "Flight speed:" + getFlightSpeed() + " mph\n";
info += "Wingspan: " + getWingspan() + " in\n";
return info;
}
}