namespace Game
{
///
/// Represents a company.
///
public record Company
{
///
/// Gets the company's name.
///
public string Name { get; }
///
/// Gets the company's three letter stock symbol.
///
public string StockSymbol { get; }
///
/// Gets the company's current share price.
///
public double SharePrice { get; init; }
///
/// Initializes a new Company record.
///
public Company(string name, string stockSymbol, double sharePrice) =>
(Name, StockSymbol, SharePrice) = (name, stockSymbol, sharePrice);
}
}