About specifiers related to cout

can I print data types of class inside main using cout if the the specifier is private?

Hey @avverma11057
Please give an example
so that I can help u by understanding what u are saying exactly

But if u want to try accessing any private member to print its type in main without getter functions then u can’t

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.