基于Vue3最新标准,实现后台前端综合解决方案MK
download:基于Vue3最新标准,实现后台前端综合解决方案
public class Demo03{
int age;
public static void main(String []args){
System.out.println(Demo04.name);
//静态调用静态1
Demo04.eat();
Demo04 d = new Demo04();
//静态调用静态2
System.out.println(d.name);
d.eat();
Demo03 d1 = new Demo03();
//静态调用非静态
d1.method();
System.out.println(d1.age);
}
public void method(){
System.out.println("first method");
}
【基于Vue3最新标准,实现后台前端综合解决方案MK】}
复制代码
复制代码
1 public class Demo04{
2 static String name = "张三";
3
4 public static void eat(){
5 System.out.println("肉夹馍");
6 }
7 }
复制代码
复制代码
1 public class Demo05{
2 static int age;
3 String name;
4 public static void main(String []args){
5
6 Demo05 d1 = new Demo05(); //静态调非静态 实例化
7 d1.method();
8 }
9
10 public void method(){
11 System.out.println(age); //非静态调静态
12 method1(); //非静态调静态
13 System.out.println(name); //非静态调非静态
14 method2(); //非静态调非静态
15 System.out.println("first method");
16 }
17 public static void method1(){
18 System.out.println("second method");
19 }
20 public void method2(){
21 System.out.println("third method");
22 }
23 }
复制代码
复制代码
1 public class Demo06{
2
3 public static void main(String []args){
4
5 Demo06 d1 = new Demo06(); //静态调非静态 实例化
6 d1.method();
7 }
8 public void method(){
9 System.out.println(Person.name); //非静态调静态
10 Person.method1(); //非静态调静态
11 Person p = new Person(); //非静态调非静态 实例化
12 p.method2();
13 System.out.println("first method");
14 }
15 }
16 class Person{
17 static String name;
18 int age;
19 public static void method1(){
20 System.out.println("second method");
21 }
22 public void method2(){
23 System.out.println("third method");
24 }
25 }
复制代码
复制代码
1 public class Demo09{
2 //实参到形参是单向的,所以在传送过程中形参值发作改动不会影响实参
3 public static void main(String []args){
4 int i =1;
5 String s = "ww";
6 Demo09 d = new Demo09();
7 d.method(i,s);
8 System.out.println(i);
9 System.out.println(s);
10 }
11 public void method(int i,String s){
12 i = 100;
13 s = "asd";
14 }
15 public void method1
16 }
复制代码
复制代码
public class ChuanDiZhi{
int x = 3;
public static void main(String args[]){
ChuanDiZhi p = new ChuanDiZhi();
p.x = 9;
show(p);
System.out.println(p.x);
}
public static void show(ChuanDiZhi p){
p.x = 4;
}
}
推荐阅读
- 基于微信小程序带后端ssm接口小区物业管理平台设计
- 危险也是机会
- 基于|基于 antd 风格的 element-table + pagination 的二次封装
- 基于爱,才会有“愿望”当“要求”。2017.8.12
- 百度云极速下载,来体验飞的感觉,还可以看最新动漫的百度云视频哦
- 程序员|【高级Java架构师系统学习】毕业一年萌新的Java大厂面经,最新整理
- javaweb|基于Servlet+jsp+mysql开发javaWeb学生成绩管理系统
- JavaScript|vue 基于axios封装request接口请求——request.js文件
- 韵达基于云原生的业务中台建设 | 实战派
- EasyOA|EasyOA 基于SSM的实现 未完成总结与自我批判