Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zoo application
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
elijah vasquez
zoo application
Commits
22af10bc
Commit
22af10bc
authored
May 16, 2022
by
elijah vasquez
🦍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commits
parent
57cb7e37
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
8 deletions
+25
-8
Amphibians.java
Amphibians.java
+5
-1
Fish.java
Fish.java
+5
-1
Habitat.java
Habitat.java
+3
-2
Mammals.java
Mammals.java
+5
-1
Reptiles.java
Reptiles.java
+5
-1
main.java
main.java
+2
-2
No files found.
Amphibians.java
View file @
22af10bc
public
class
Amphibians
extends
animal
{
String
amphibianAction
;
Amphibians
(
String
animalName
,
String
givenName
,
String
gender
,
String
sound
,
String
amphibianAction
,
int
age
,
int
lifespan
,
int
height
,
int
weight
)
{
super
(
animalName
,
givenName
,
gender
,
sound
,
age
,
lifespan
,
height
,
weight
);
this
.
amphibianAction
=
amphibianAction
;
}
}
Fish.java
View file @
22af10bc
public
class
Fish
extends
animal
{
String
fishAction
;
Fish
(
String
animalName
,
String
givenName
,
String
gender
,
String
sound
,
String
fishAction
,
int
age
,
int
lifespan
,
int
height
,
int
weight
)
{
super
(
animalName
,
givenName
,
gender
,
sound
,
age
,
lifespan
,
height
,
weight
);
this
.
fishAction
=
fishAction
;
}
}
Habitat.java
View file @
22af10bc
...
...
@@ -2,7 +2,8 @@ public class Habitat {
String
habitatName
;
int
habitatTemp
;
Habitat
(
String
habitatName
,
int
habitatTemp
)
{
this
.
habitatName
=
habitatName
;
this
.
habitatTemp
=
habitatTemp
;
}
this
.
habitatName
=
habitatName
;
this
.
habitatTemp
=
habitatTemp
;
}
Mammals.java
View file @
22af10bc
public
class
Mammals
extends
animal
{
String
mammalAction
;
Mammals
(
String
animalName
,
String
givenName
,
String
gender
,
String
sound
,
String
mammalAction
,
int
age
,
int
lifespan
,
int
height
,
int
weight
)
{
super
(
animalName
,
givenName
,
gender
,
sound
,
age
,
lifespan
,
height
,
weight
);
this
.
mammalAction
=
mammalAction
;
}
}
Reptiles.java
View file @
22af10bc
public
class
Reptiles
extends
animal
{
String
reptileAction
;
Reptiles
(
String
animalName
,
String
givenName
,
String
gender
,
String
sound
,
String
reptileAction
,
int
age
,
int
lifespan
,
int
height
,
int
weight
)
{
super
(
animalName
,
givenName
,
gender
,
sound
,
age
,
lifespan
,
height
,
weight
);
this
.
reptileAction
=
reptileAction
;
}
}
main.java
View file @
22af10bc
...
...
@@ -5,12 +5,12 @@ public class main {
ArrayList
<
animal
>
animals
=
new
ArrayList
<
animal
>();
// Bird types
animal
batFalcon
=
new
Birds
(
"BatFalcon"
,
"Griffith"
,
"M"
,
"Screech"
,
"
flie
s"
,
9
,
18
,
30
,
230
);
animal
batFalcon
=
new
Birds
(
"BatFalcon"
,
"Griffith"
,
"M"
,
"Screech"
,
"
Soar
s"
,
9
,
18
,
30
,
230
);
batFalcon
.
dietType
=
new
Carnivores
(
"Bats"
);
batFalcon
.
habitat
=
new
Habitat
(
"Islands"
,
34
);
animals
.
add
(
batFalcon
);
//Reptile Types
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment