Take input and display 2-D array

why we use private method here?

hey @amansinghc33 We have used private bcoz we only want that to work in this class only. And we want to work in this class only bcoz if we apply these methods in other class we will not be having any array to display or takeInput since there are no global Array is avalable.

1 Like

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.