Computer Science, asked by narendermodi91451, 9 months ago

How to access the members of a class

Answers

Answered by ᏕɱartYᎶᴜʀɭ
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 gurj57364953
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