Hello
By default, a class is private. So i don't understand that this line Tennis player = new Tennis(); can be exectuted. It would not be able to reach the class Tennis.
Thanks
class Tennis
{
public string name;
}
class Head
{
static void Main(string[] args)
{
Tennis player = new Tennis();
...
}
}
Sachin SinghPosted Jun 27, 2021, 7:38 AM
Sonil KumarPosted Jul 30, 2021, 12:38 PM
Valerie MeunierPosted Jun 27, 2021, 7:55 AM