-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAnimal.java
More file actions
49 lines (47 loc) · 786 Bytes
/
Copy pathAnimal.java
File metadata and controls
49 lines (47 loc) · 786 Bytes
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Programmer: Edgar Colin
// Student ID: EDG2140344
// Class: CIS263AA JAVA II Class # 12303
// Instructor: Michael Parmeley
// Chapter: 10
// Problem: 2
// Part: a)
// Filename: Animal.java
public class Animal
{
private String Name;
private int Age;
private int Size;
private String Food;
public void setName(String aName)
{
Name = aName;
}
public void setAge(int aAge)
{
Age = aAge;
}
public void setSize(int aSize)
{
Size = aSize;
}
public void setFood(String aFood)
{
Food = aFood;
}
public String getName()
{
return Name;
}
public int getAge()
{
return Age;
}
public int getSize()
{
return Size;
}
public String getFood()
{
return Food;
}
}