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?

  1. Scope Resolution Operator (::)
  2. Ternary Operator (? :)
  3. Member Access or Dot Operator (.)
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.