摘要:
课程代码: 1:值传递: 1 package com.oop.demo01; 2 3 // 值传递 4 public class Demo04 { 5 public static void main(String[] args) { 6 int a=1; 7 Demo04.change(a); 8 阅读全文
posted @ 2021-02-27 21:13
现在开始JAVA
阅读(60)
评论(0)
推荐(0)
摘要:
注意点: 1:带有static修饰符的方法,在类加载的时候就已经存在。 2:没有static修饰符的方法,只有在实例化的时候才存在。3:因此,类中的static方法,不能直接调用没有static的方法。(同时有static,或者同时没有static可以调用) 阅读全文
posted @ 2021-02-27 20:52
现在开始JAVA
阅读(467)
评论(0)
推荐(0)

浙公网安备 33010602011771号