This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
dude...here the zebra class inherits the member string variable name from its parent class...and you are free to redefine it in your own class if you want....the only difference between inheriting superclass instance methods and variables is that overriding rules only apply to methods and not to variables....and m.name calls the mammals class variable because which instance variable to call depends on the reference variable.....and m.makeNoise() calls the method of zebra becuase which method to call depends on the object at runtime....
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown