- package com.company.section4;
- import java.util.HashMap;
- import java.util.Map;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- */
- public class Client {
- public static void invoker(){
- //父类存在的地方,子类就应该能够存在
- //Father f = new Father();
- Son f =new Son();
- HashMap map = new HashMap();
- f.doSomething(map);
- }
- public static void main(String[] args) {
- invoker();
- }
- }