Home » C# Programming » Properties

Which of the following is the correct way to implement a read only property Length in a Sample class?

Correct Answer: class Sample { int len; public int Length { get { return len; } } }

Next Question→

More Questions from Properties

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion