How to access the members of a class
Answers
Answered by
0
Explanation:
Accessing Data Members of Class in C++
If its public, then the data member can be easily accessed using the direct member access (.) operator with the object of that class. If, the data member is defined as private or protected, then we cannot access the data variables directly.
Answered by
38
Answer:
hy dude ur answer is here
Explanation:
Accessing Data Members of Class in C++
If its public, then the data member can be easily accessed using the direct member access (.) operator with the object of that class. If, the data member is defined as private or protected, then we cannot access the data variables directly.
hope it helps!!
plz mark me as brainliest
Similar questions