Sollicitatievraag bij Cavista Technology

difference between readonly and const keyword

Antwoorden op sollicitatievragen

Anoniem

4 jul 2022

Cant be changed and can be

1

Anoniem

12 aug 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)