为什么不能输出Animal类的内存地址呢?
package Animal; public class MainDemo { public static void main(String[] args) { // TODO Auto-generated method stub Dog dog = new Dog(); System.out.println(dog);//输出dog类的内存哈希码 System.out.println(Animal);//Animal cannot be resolved to a variable } }