-
Notifications
You must be signed in to change notification settings - Fork 3k
/
Copy pathBall.cs
38 lines (33 loc) · 802 Bytes
/
Ball.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
namespace Cricinfo
{
public class Ball
{
private readonly int ballNumber;
private readonly string bowler;
private readonly string batsman;
private readonly string result;
public Ball(int ballNumber, string bowler, string batsman, string result)
{
this.ballNumber = ballNumber;
this.bowler = bowler;
this.batsman = batsman;
this.result = result;
}
public int GetBallNumber()
{
return ballNumber;
}
public string GetBatsman()
{
return batsman;
}
public string GetBowler()
{
return bowler;
}
public string GetResult()
{
return result;
}
}
}