What is the difference between “Readonly” and “Constant” variables (atleast 3)?

preview_player
Показать описание
1. Full .NET Interview Course (with PDF Book)

C# / ASP.NET Core / MVC / API - Top 500 Interview Questions

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

50% Discount Applied on above link.

My best wishes are with you.
Рекомендации по теме
Комментарии
Автор

constant variable can be changed in constructor?
I tried and its getting changed. Please answer for this

PriyankaKhamkar-Spirit
Автор

Hello sir. Can you do videos on interview coding questions for freshers.

saicharan
Автор

Readonly value cannot changed once initiated as per my knowledge could you plz confirm it ?

alokraj
Автор

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.

FarukShaikh
Автор

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

ashak