employer cover photo
employer logo
employer logo

General Dynamics Mission Systems

Employeur impliqué

Question d’entretien chez General Dynamics Mission Systems

How do you protect variables from accidental assignment?

Réponses aux questions d'entretien

Utilisateur anonyme

18 févr. 2020

depending on the variable use 1. if the variable is never changed in the program you can declare it as constant. 2. if the variable is changed in some part of the code and not others make it final 3. in C# you have the sealed and readonly keyword

2

Utilisateur anonyme

22 mars 2018

Make the variable final