Getters and Setters

What is the meaning of providing read only access to private member of a class.

Share the time stamp in which you are facing doubt.

It is from 2:45 to 3:00

Read only access here means that you will only be able to read the value (get the value) of this private member. By get_price function.

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.