📄 factory.java~9~
字号:
/*工厂类*/
package com.richard.service;
import com.richard.dao.*;
public class Factory {
public Factory() {
}
public static InterfaceOfEmployee createEmployee() { //用于产生一个InterfaceOfEmployee对象
return new ClassOfEmployee();
}
public static InterfaceOfOwners createOwners()//用于产生一个InterfaceOfOwners对象
{
return new ClassOfOwners();
}
public static InterfaceOfPets createPets()
{
return new ClassOfPets();
}
public static InterfaceOfViewOfPets createViewOfPets()
{
return new ClassOfViewOfPets();
}
public static InterfaceOfTypes createTypes()
{
return new ClassOfTypes();
}
public static InterfaceOfViewOfVetsDetails createVetsDetails()
{
return new ClassOfViewOfVetsDetails();
}
public static InterfaceOfSpecialties createSpecialties()
{
return new ClassOfSpecialties();
}
public static InterfaceOfVets createVets();
{
return new ClassOfVets();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -