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.

КОМЕНТАРІ • 8

  • @saicharan4081
    @saicharan4081 Рік тому +1

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

  • @PriyankaKhamkar-Spirit
    @PriyankaKhamkar-Spirit Місяць тому

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

  • @alokraj3309
    @alokraj3309 4 місяці тому

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

  • @FarukShaikh12
    @FarukShaikh12 Рік тому +2

    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.

    • @interviewhappy
      @interviewhappy  Рік тому

      Hi Faruk, myReadonly1 I did not changed to show you the difference with Constant, that Readonly can be declared also.

  • @ashak4440
    @ashak4440 Рік тому

    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

  • @learnjavascript2146
    @learnjavascript2146 2 місяці тому

    Concept absorbable content