C#
For encaps ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
For encapsulation, you want to define auto-implemented property so that you cannot call the setter outside the class, but leave the getter available. Which of the given options describes the desired property?
public int Value {get; }
public int Value {get; set; }
int Value {public get; private set; }
public int Value {get; private set; }
private int Value {public get; set; }
Explanation
Get an explanation when it's available:
Subscribe
properties
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
C
#
Quiz
Login to learn C#
or
Read more about
C# Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment