Question d’entretien chez Cavista Technology

difference between readonly and const keyword

Réponses aux questions d'entretien

Utilisateur anonyme

4 juil. 2022

Cant be changed and can be

1

Utilisateur anonyme

12 août 2023

Const is initiated at compile time Where as the read only can be initiated both at compile time as well as runtime (only using constructor from same class)