What is the keyword used to make data members have same value?

Phương Linh

New member
What is the keyword used to make data members have same value?
A. static
B. const
C. double
D. abstract
 
Answer: b
Explanation: The keyword const can be used anywhere to make the variable have same value all the time. This restriction is made to use the same value whenever required. Also, this can restrict accidental changes.
 

Tìm kiếm

Back
Top