//package com.sf.day10.impl;
//
//import com.sf.day10.Swim;
//
//public class SwimImpl implements Swim {
//    @Override
//    public void Swimming(String name) {
//        System.out.println(name+"在游泳");
//    }
//
//
//    public static void main(String[] args) {
//        Swim swim = new SwimImpl();
//        swim.Swimming("zhangsan");
//        Swim  swim1  = new Swim() {
//            @Override
//            public void Swimming(String name) {
//                System.out.println("18岁的"+name+"正在游泳");
//            }
//
//        };
//    }
//}
