This is what i have to do for an assignment:
Create an animal class with at least 3 attributes and 2 methods. Write all possible accessor and modifier methods. Also write constructor for animal. This is what i have so far:
public class Animal {
static int cuteness;
static boolean fur;
static String name;
public static void main (String agrs[]){
Animal myAnimal = new Animal();
getCuteness();
getFur();
getName();
}
public static void getCuteness(){
System.out.println(cuteness);
}
public static void getFur(){
System.out.println(fur);
}
public static void getName(){
System.out.println(name);
}
}
I'm guessing with what i am doing so can anyone please help me figure out how to do this assignment correctly. I'll appreciate any help