You want to create a string property named CountryOfOrigin. You want to be able to read the property value from any code, but you should only be able to write to the property from within the containing structure. How should you declare the property?
public string CountryOfOrigin { get; private set; }
public string CountryOfOrigin { get; }
public string CountryOfOrigin { get; set; }
private string CountryOfOrigin { get; set; }
To get all Infosys Certified L1 Junior Microsoft .NET Programmer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee