---------------------------
Example class:
class A
{
public:
static int value;
}
---------------------------
a) A->value
b) A^value
c) A.value
d) A::value
What is the correct syntax of accessing a static member of a class in C++?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the correct syntax of accessing a static member of a class in C++?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!