Frage im Vorstellungsgespräch bei Cavista Technology

difference between readonly and const keyword

Antworten zu Vorstellungsgespräch

Anonym

4. Juli 2022

Cant be changed and can be

1

Anonym

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)