• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






Lovemeifyoudare

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2019年2月14日

代理设计模式
摘要: package designmode; interface Subject { // 整个操作的核心主题 public void make();// 整个操作的核心功能} class RealSubject implements Subject { public void make() { Syst 阅读全文
posted @ 2019-02-14 23:09 Lovemeifyoudare 阅读(118) 评论(0) 推荐(0)
 
继承实战
摘要: package test; class sortArray extends Array { public sortArray(int num) { super(num); } public int[] getData() { java.util.Arrays.sort(super.getData() 阅读全文
posted @ 2019-02-14 21:43 Lovemeifyoudare 阅读(140) 评论(0) 推荐(0)
 
工厂设计模式
摘要: package designmode; interface Fruit { public void eat();} class Apple implements Fruit { public void eat() { System.out.println("这个苹果真好吃!"); }} class 阅读全文
posted @ 2019-02-14 21:37 Lovemeifyoudare 阅读(114) 评论(0) 推荐(0)