This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
not sure why name it there either if it is not used, yes size and name are instance variables because you can call them using one.size, two.size. If size or name was static then they would not be instance variables but merely variables. If I am wrong someone correct me please.
Originally posted by James Hambrick: if size or name was static then they would not be instance variables but merely variables.
Just to confirm, if size and name were static then they would be known as Class variables and would be accessed via the class name. A reference of the Dog Class would not need to be created to use them.