Home » C# Programming » Properties

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

Correct Answer: class Sample { int len; public int Length { set { len = value; } } }

← Previous Question Next Question→

More Questions from Properties

Discussion & Comments

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