⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 factory.java~4~

📁 基于mvc的宠物管理系统。servlet+jsp
💻 JAVA~4~
字号:
/*工厂类*/
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()
    {

    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -