Question: Multiple Choice ( There may be more than 1 correct answer ) Questionld: 9 6 0 2 2 Auto Next Which of the following are

Multiple Choice (There may be more than 1 correct answer)
Questionld: 96022
Auto Next
Which of the following are correct w.r.t readonly keyword
A readonly field can be initialized multiple times within the constructor(s)
We can pass readonly field as ref or out parameters in the constructor context
readonly field can be initialized anywhere in the program
If you declare a non-primitive types (reference type) as readonly only reference is immutable not the object it contains.
memory is allocated for readonly fields during compile time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!