cannot find symbol
Hi been having similar problem as some of the others
This is the objective of my lesson: Develop a class to represents a human. The head, arms and legs should be properties of the human and should be represented by separate objects. All of your objects should have at least three properties and one method.
public class Human
{
Head human_head;
public Human(String color1, String size1, String color2)
{
human_head = new Head(color1, size1, color2);
}
public static void main(String[] args)
{
Human mke = new Human("green", "big", "blonde");
System.out.println("My name is Phil I have " + mke.human_head + "eyes head hair");
}
}
C:\java_code>javac usingobjects\Human.java
usingobjects\Human.java:8: cannot find symbol
symbol : class Head
location: class usingobjects.Human
Head human_head;
^
usingobjects\Human.java:14: cannot find symbol
symbol : class Head
location: class usingobjects.Human
human_head = new Head(color1, size1, color2);
^
2 errors
C:\java_code>

