网站开发规范文档,南昌污水厂最新数据,WordPress内容页面加边框,国内用python做的网站亲爱的同学#xff0c;你好#xff0c;我是geely老师的助教。你这样挺不错的。和老师的设计有不同的思路#xff0c;赞。我再修改一下#xff0c;看看能不能还有不一样的想法。public class DiscountCourse implements ICourse{private ICourse course;//折扣private doubl…亲爱的同学你好我是geely老师的助教。你这样挺不错的。和老师的设计有不同的思路赞。我再修改一下看看能不能还有不一样的想法。public class DiscountCourse implements ICourse{private ICourse course;//折扣private double discount;public JavaDiscountCourse(ICourse course, double discount) {this.course course;this.discount discount;}Overridepublic String getName() {return this.course.getName();}Overridepublic double getPrice() {return this.course.getPrice() * this.discount;}public double getOriginPrice() {return this.course.getPrice();}}