- package com.company.section3;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- */
- public class ShanZhaiCorp extends Corp {
- //产什么产品,不知道,等被调用的才知道
- public ShanZhaiCorp(Product product){
- super(product);
- }
- //狂赚钱
- public void makeMoney(){
- super.makeMoney();
- System.out.println("我赚钱呀...");
- }
- }