- package com.company.section2;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- * 产品A的实现类
- */
- public class ProductB2 extends AbstractProductB {
- @Override
- public void doSomething() {
- System.out.println("产品B2的实现方法");
- }
- }