- package com.company.section5;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- */
- public class Caretaker {
- //发起人对象
- private Originator originator;
- public Originator getOriginator() {
- return originator;
- }
- public void setOriginator(Originator originator) {
- this.originator = originator;
- }
- }