第五讲 this 类变量 类方法

第八讲 this 类变量 类方法

  1. Java 虚拟机 会给每个对象分配 this ,代表当前对象。
    • 注意:this 不能在类定义的外部使用,只能在类定义的方法中使用。
  2. 类变量
    1. 问题提出:案例
      Image[8]
    2. 什么是 类变量?
      • Image(1)
    3. 如何定义类变量?
      • Image(2)
    4. 如何访问类变量?
      • Image(3)
    5. 类变量小结:
      • image
  3. 类方法
    • image
原文地址:https://www.cnblogs.com/igeneral/p/2979694.html