Solution: Logistics Tracking

Review the implemented ITrackable interface and observe how the freight container updates its location.

Solution: Logistics Tracking

Review the implemented ITrackable interface and observe how the freight container updates its location.
C# 14.0
namespace Logistics;
public interface ITrackable
{
string TrackingId { get; set; }
void UpdateLocation(string newLocation);
}
public class FreightContainer : ITrackable
{
public string TrackingId { get; set; } = string.Empty;
public void UpdateLocation(string newLocation)
{
Console.WriteLine($"Container {TrackingId} is now at: {newLocation}");
}
}