Question
Easy

In C++, which of the following is not a valid access specifier ?

1
private
2
public
3
protected
4
mutable
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Object-Oriented Programming (C++)
Topic: Class & Object in C++
Correct Answer
Option D
Explanation

The correct option is (4): The keyword mutable is not an access specifier in C++; rather, it is a storage class specifier with a specific, unrelated purpose. Access specifiers—which are limited to private, public, and protected—are primarily used to enforce encapsulation and define the accessibility boundaries of a class’s members (data and methods) to the rest of the program. Mutable, by contrast, is used exclusively to permit a specific non-static…Read More

In c which of - HTET Level 3 | Clear Cutoff