摘要: package strategy;public abstract class CashSuper { // 现金收费抽象类 public abstract double acceptCash(double money);}package strategy;public class Cas... 阅读全文
posted @ 2015-09-01 16:44 郁闷紫番薯 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 书上原版的是C#代码我比较熟悉java,写的是java代码。package sampleFactory;public class Operation { protected double _numberA = 0; protected double _numberB = 0; pr... 阅读全文
posted @ 2015-09-01 15:16 郁闷紫番薯 阅读(111) 评论(0) 推荐(0) 编辑