示例#1
0
        // member methods (Can do)



        public void CheckRequirements(Applications applications, HardDrive hardDrive, RAM ram, GPU gpu)
        {
            if (ram.totalGigabytes >= applications.requiredRAM && hardDrive.availableStorage >= applications.requiredStorage)
            {
                hardDrive.ProcessInstall(applications, hardDrive, ram, gpu);
            }
            else
            {
                Console.WriteLine("Does not meet requirements to run");
            }
        }
示例#2
0
        // member methods (Can do)

        public void ProcessInstall(Applications applications, HardDrive hardDrive, RAM ram, GPU gpu)
        {
            hardDrive.ApplicationsInHardDrive.Add(applications);
        }