java12 OOP抽象类应用:模板方法模式(Templete Method) 2022-02-07
//抽象类应用:模板方法模式(TempleteMethod)publicclassTest1{publicstaticvoidmain(String[]args){UserManagerum=newUserManager();um.action("admin","add");}}abstractclassBaseManager{publicvoidaction(Stringname,Stringm