contestada

A member function that is declared ______ may not access any non-static data members in the class. (a) private (b) public (c) static (d) inline

Respuesta :

Answer:

Correct answer of this is option C- Static.

A member function that is declared Static may not access any non-static data members in the class.

  Class members are those that are declared using the static keywords. Certain unique qualities apply to static members. As follows: No matter how many objects are generated, there is only one instance of that member created for the class as a whole, which is shared by all of the objects.

A member function is independent of any specific class object by virtue of its static declaration. Even though the static functions can only be accessed via the class name and the scope resolution operator, a static member function can be invoked even if the class' objects don't exist.

To learn more about Member Function click here:

https://brainly.com/question/13718766?referrer=searchResults

#SPJ4