摘要: package net.elaina.innerclass01; public class Car { String carName; int carAge; String carColor; public void show(Car this){ //是打印调用者车的名字:宾利 System.ou 阅读全文
posted @ 2023-11-21 22:18 _Elaina 阅读(15) 评论(0) 推荐(0)
摘要: package net.elaina.interface01; public abstract class Animal { private String name; private int age; public Animal() { } public Animal(String name, in 阅读全文
posted @ 2023-11-20 22:16 _Elaina 阅读(6) 评论(0) 推荐(0)
摘要: 继承的特点 Java只支持单继承,不支持多继承,但支持多层继承。 单继承:一个子类只能继承一个父类 不支持多继承:子类不能同时继承多个父类 多层继承:子类A继承父类B,父类B可以继承父类C 每一个类都直接或者间接的继承于Object 阅读全文
posted @ 2023-11-20 20:24 _Elaina 阅读(11) 评论(0) 推荐(0)
摘要: ![](https://img2023.cnblogs.com/blog/3234449/202311/3234449-20231119214941863-2138672863.png) ![](https://img2023.cnblogs.com/blog/3234449/202311/3234449-20231119215008701-1043372967.png) ![](https:// 阅读全文
posted @ 2023-11-20 20:24 _Elaina 阅读(15) 评论(0) 推荐(0)
摘要: ![](https://img2023.cnblogs.com/blog/3234449/202311/3234449-20231119205806368-91010930.png) ![](https://img2023.cnblogs.com/blog/3234449/202311/3234449-20231119210637943-1999082605.png) ![](https://im 阅读全文
posted @ 2023-11-19 21:45 _Elaina 阅读(7) 评论(0) 推荐(0)
摘要: package net.elaina; public class Test { public static void main(String[] args) { /*final修饰方法: 表明该方法是最终方法,不能被重写 final修饰类: 表明该类是最终类,不能被继承 final修饰变量: 叫做常 阅读全文
posted @ 2023-11-19 20:57 _Elaina 阅读(7) 评论(0) 推荐(0)
摘要: package net.elaina.polymorphismdemo02; public class Test { public static void main(String[] args) { //创建对象(多态方式) //Fu f = new zi(); Animal a1 = new Do 阅读全文
posted @ 2023-11-17 21:20 _Elaina 阅读(14) 评论(0) 推荐(0)
摘要: 目录结构 - WxApp - api 请求方式 - index.ts 统一输出api接口 - base.ts 环境判断 - user 对应数据请求 - userApi.ts - utils - request.ts 封装请求 封装request 首先,我们先搞wx.request先,这个搞完,其它都 阅读全文
posted @ 2023-11-16 17:10 _Elaina 阅读(349) 评论(0) 推荐(0)
摘要: 安装 小程序开发助手 安装 vscode-wechat 安装 wxml 安装 wechat-snippet 安装 vscode wxml 安装 vscode weapp api 阅读全文
posted @ 2023-11-16 14:59 _Elaina 阅读(81) 评论(0) 推荐(0)
摘要: package net.elaina.a01oopextensdemo2; public class Test { public static void main(String[] args) { //利用空参构造创建子类对象 Zi z1 = new Zi(); z1.ziShow(); } } c 阅读全文
posted @ 2023-11-15 22:28 _Elaina 阅读(11) 评论(0) 推荐(0)