public class Chicken{
	private String name;
	private String color;
	private int age;
	
		public void layAnEgg(){
			System.out.println("The chicken "+name+" laid an egg."); 
		}
		public void poop(){
			System.out.println("The chicken "+name+" did pooped."); 
		}
		public void drink(){
			System.out.println("The chicken "+name+" drank water."); 
		}
		public void print(){	
			System.out.println("The name of the chicken is:" + name + ", Color:" + color + "Age:"+ age+" "); 
		}
		
	public void initializeData(String color, int age){
		this.color=color;
		this.age=age;
	}
	
	public void addName(String name){
		this.name = name; 
	}
		
}


@@ -634,9 +634,487 @@
 %09%7D%0A%09
-%09%0A%7D
+//constructor%0A%09public Chicken(String name,String color,int age)%7B%0A%09%09this.name=name;%0A%09%09this.color=color;%0A%09%09this.age=age;%0A%09%7D%0A%09%0A%09//setters%0A%09public void setName(String name)%7B%0A%09%09this.name=name;%09%09%0A%09%7D%0A%09%0A%09public void setColor(String color)%7B%0A%09%09this.color=color;%09%09%0A%09%7D%0A%09%0A%09public void setAge(int age)%7B%0A%09%09this.age=age;%09%09%0A%09%7D%0A%09//getters%0A%09public String getName()%7B%0A%09%09return this.name;%09%09%0A%09%7D%0A%09%0A%09public String getColor()%7B%0A%09%09return this.color;%09%09%0A%09%7D%0A%09%0A%09public int getAge()%7B%0A%09%09return this.age;%09%09%0A%09%7D%0A%7D%0A%09%0A%09%09
 %0A%0A

Version 2.0