- package com.company.section3;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- */
- public class ConcreteFlyweight2 extends Flyweight{
- //接受外部状态
- public ConcreteFlyweight2(String _Extrinsic){
- super(_Extrinsic);
- }
- //根据外部状态进行逻辑处理
- public void operate(){
- //业务逻辑
- }
- }