Демонстрационные примеры по ООП
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
384 B

2 years ago
namespace speedLight.BL.Models;
public class Space
{
public Mechanic Mechanic { get; set; }
public Picture Picture { get; set; }
public Ball Ball { get; set; }
public Space(Mechanic mechanic, Picture picture)
{
Mechanic = mechanic;
Picture = picture;
Ball = new Ball();
}
public void Move()
{
Ball.Move();
}
}