Esempio n. 1
0
        public ComputerComponent create(int code)
        {
            ComputerComponent cc = null;

            switch (code)
            {
                case 0:
                    cc = new GameGPU();
                    break;
                case 1:
                    cc = new BusinessGPU();
                    break;
                case 2:
                    cc = new MultimediaGPU();
                    break;
            }

            return cc;
        }
Esempio n. 2
0
        public ComputerComponent create(int code)
        {
            ComputerComponent cc = null;

            switch (code)
            {
            case 0:
                cc = new GameGPU();
                break;

            case 1:
                cc = new BusinessGPU();
                break;

            case 2:
                cc = new MultimediaGPU();
                break;
            }

            return(cc);
        }