Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CryptoMiningSystem
- {
- class MineVideoCard : VideoCard
- {
- public MineVideoCard(string model, int generation, int ram, decimal price) : base(model, generation, ram, price)
- {
- MinedMoneyPerHour *= 8;
- LifeWorkingHours *= 2;
- //Generation=generation;
- //Generation = int.Parse(generation);
- }
- private int generation;
- public int Generation
- {
- get { return generation; }
- set
- {
- if (/*value <= 0 || */value > 6) throw new ArgumentException($"Mine video card generation cannot be more than 9!");
- generation = value;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement