Home »
MCQs »
OOPs MCQs
Which operator is used to access the static variable and static function of a class?
97. Which operator is used to access the static variable and static function of a class?
- Scope Resolution Operator (::)
- Ternary Operator (? :)
- Member Access or Dot Operator (.)
- All of the above
Answer: A) Scope Resolution Operator (::)
Explanation:
Scope Resolution Operator (::), is used to access the static variable and static function of a class.