package com.ice.structure.Proxy; /** * @author ice * @blog https://blog.csdn.net/dreaming_coder * @description * @create 2021-10-31 14:04:30 */ public class Client { public static void main(String[] args) { Host host = new Host(); Agent proxy = new Agent(host); proxy.seeHouse(); proxy.rent(); proxy.fare(); } }