What are the two kinds of properties?
Answers were Sorted based on User's Feedback
Answer / diana cheriyan
1.ReadOnly Property(With get Only)
2.WriteOnly Property(With Set only)
3.ReadWrite Property(With both set and get)
Is This Answer Correct ? | 14 Yes | 5 No |
Answer / manish
HELLO ALL .... whats going on ? ,,, GET and SET are not the
types of property.
Those are parts of property.
READONLY and WRITEONLY can be said as part.
But we can not forget INDEXED PROPERTIES.
Is This Answer Correct ? | 5 Yes | 5 No |
Answer / che
1)Default Property or Indexed Property.
2)Private Property or Custom Property.
Is This Answer Correct ? | 5 Yes | 6 No |
Answer / nazrul
There three type of properties.
1)Readonly properties(Only get)
2)WriteOnly Properties(Only set).
3)Read and Write(set + get)
Is This Answer Correct ? | 2 Yes | 4 No |
Answer / sharifuddin
Hey Ral check u r answer once?
Its wrong yaar
set is for write only
get is for read only
both r for read and write
Is This Answer Correct ? | 2 Yes | 5 No |
Answer / raj
Read only ( with no 'set')
write only (with no 'get')
Is This Answer Correct ? | 3 Yes | 14 No |
Answer / payal mehta
There are two kinds of properties.
get(for write)
set(for read)
Is This Answer Correct ? | 1 Yes | 14 No |
What is the compiler of c#?
What is the difference between an integer and int?
Is struct object oriented?
What is an actual parameter?
What is ispostback c#?
In gridview in editmode if we want to display information in one combobox based on
Error handling and how this is done ?
Why do we use methods in c#?
What is binary search tree in data structure?
Are tuples mutable c#?
What happens if a static constructor throws an exception?
What is cache memory in c#?