Question OOP-ENC-0054
MediumWhich C++ keyword allows one specific member to be changed even inside a const member function, for example a cache?
- A.
explicit
- B.
volatile
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Encapsulation question
Which C++ keyword allows one specific member to be changed even inside a const member function, for example a cache?
explicit
volatile
Sign up free to see the answer and a step-by-step explanation.
mutable
static