软件大小: | 392 K | ||
上传用户: | granite518 | ||
关键词: | DesignPatterns java 源码 | ||
下载地址: | 免注册下载 普通下载 |
![]() |
相关代码 |
|
package com.javapatterns.visitor.inventory; public class Case extends Equipment { public double price() { return 30.00; } public void accept(Visitor v) { System.out.println("Case has been visited."); v.visitCase(this); } }
相关资源 |
|