摘要: 请求报文 //行 POST //头 Host: atguigu.com Cookie: name=guigu Content-type: application/x-www-form-urlencoded User-Agent: chorme 83 //空行 //响应体 username=admin 阅读全文
posted @ 2022-01-19 21:30 SmallCity 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 接口是一种规范,不可以写方法内容 public class UserServiceImol implements UserService{ //这里要复写接口里面的方法 } 接口可以实现伪多继承 作用: 约束 定义一些方法,让不同的人实现 方法都是public abstract 常量都是public 阅读全文
posted @ 2022-01-19 21:27 SmallCity 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 内部类的构建 package com.xiaochen.demo08; public class run { public static void main(String[] args) { outer outer = new outer(); outer.inner inner = outer.n 阅读全文
posted @ 2022-01-19 21:27 SmallCity 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 重写是方法的重写与属性无关 package com.xiaochen.func; public class Applicaton { public static void main(String[] args) { //方法的调用只和定义的数据类型有关 A a = new A(); a.test() 阅读全文
posted @ 2022-01-19 21:26 SmallCity 阅读(46) 评论(0) 推荐(0) 编辑