What is the difference between “Readonly” and “Constant” variables (atleast 3)?
Вставка
- Опубліковано 22 бер 2023
- 1. Full .NET Interview Course (with PDF Book)
C# / ASP.NET Core / MVC / API - Top 500 Interview Questions
www.udemy.com/course/csharp-o...
Don't worry if course not helping you, Udemy has 30 days Free Refund Policy.
2. Quick Revision Book (PDF format)
Top 500 .NET Interview Questions - OOPS/ C#/ ASP.Net/ MVC/ SQL /.Net Core /Web API
imojo.in/interviewhappy
50% Discount Applied on above link.
Don't worry if book not helping you, I will return 100% of your money with in 7 days of purchase. Just mail me at anuragrawat123@gmail.com.
My best wishes are with you.
Hello sir. Can you do videos on interview coding questions for freshers.
constant variable can be changed in constructor?
I tried and its getting changed. Please answer for this
Readonly value cannot changed once initiated as per my knowledge could you plz confirm it ?
Hello sir , 2 point that read-only can be changed but i can see in the code you are not changing the value of myReadonly1 variable instead it's myReadonly2 which is declared only.
Hi Faruk, myReadonly1 I did not changed to show you the difference with Constant, that Readonly can be declared also.
Hello sir . Can you create coding interview questions and also real application interview questions.
Thank you so much for vidoes and it is really helpful
Sure I will try Asha and your welcome
Concept absorbable content