I am trying to learn java and I am a complete beginner but I keep confusing myself, think I have read too much too soon.
Basically I have this bit of code:
Dog hound = new Dog();
I am right in saying here that:
Dog = Class
hound = Variable (that stores the new object)
Dog() = Create's a new instance of the class to be stored under Hound
hound.moveLeft = Message Send to tell the object referenced by the variable hound to move left.
I am confusing myself big time here and my study books don't go any further on this.
Hope someone can help thanks