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; }

Correct Option - a

To get all Infosys Certified L1 Junior Microsoft .NET Programmer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in