protected int score; // Очки за фрейм public Frame(FirstThrow fThrow, AbstractThrow sThrow) // Конструктор { firstThrow = fThrow; if (!firstThrow.IsStrike()) { secondThrow = sThrow; score = firstThrow.GetScore() + secondThrow.GetScore(); } else { score = firstThrow.GetScore(); } }
public bool IsStrike() // Перевірка чи є перший кидок фрейму страйком { return(firstThrow.IsStrike()); }