BowlingSecondPractice.ScoreBoard.CreateFrame C# (CSharp) Метод

CreateFrame() приватный статический Метод

private static CreateFrame ( int firstBall, int secondBall, int thirdBall ) : Frame
firstBall int
secondBall int
thirdBall int
Результат Frame
        private static Frame CreateFrame(int firstBall, int secondBall, int thirdBall)
        {
            Frame frame = null;
            if (thirdBall != -1)
            {
                frame = new LastFrame(firstBall, secondBall, thirdBall);
            }
            else
            {
                frame = new Frame(firstBall, secondBall);
            }
            return frame;
        }