Example #1
0
 public double Visit(RAM ram)
 {
     return(ram.Gold + ram.Platinum + ram.Silver);
 }
Example #2
0
 public CompoundMotherboard(string name, RAM ram, CPU cpu, VideoCard videoCard) : base(name)
 {
     components = new AbstracComponent[3] {
         ram, cpu, videoCard
     };
 }