Question: java on eclipse only Cree a new Java Project Create a new Tee class and enter this code. You do not have to type

java on eclipse only
" Cree a new Java Project Create a new Tee class and enter this code. You do not have to type in the comments. public class Tree private String name private int ape private hoolean evergreen; Wtrue if evergreen false if deciduous CONSTRUCTORS public Tree age = 0; evergreen = true; you fill this one public Tree (String n inta, boolean e) PUT YOUR CODE HERE GETTERS (occessors) and SETTERS (matators) public String getNameo return name public int getAge) NPUT YOUR CODE HERE PUT YOUR METHOD getEvergreen) HERE public void setName(String s) name-new Strings) public void scEvergroenboolean e) PUT YOUR CODE HERE PUT YOUR METHOD SApCO HERE OTHER METHODS public String toString0 String s-"This , name +' tree is . + age + "years old. if (evergreen) "It stays green all year round else s = s+ "It loses its leaves in the fall
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
