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