The private keyword and encapsulation

https://www.codecademy.com/courses/learn-java/lessons/access-encapsulation-and-scope-lesson/exercises/the-private-keyword-and-encapsulation

Hi Can anyone help me solve this problem. Solutions by Codecademy not working.

I guess you could go to CheckingAccount.java and change the private to public for those methods if you don’t want those errors to occur. Then go back to Bank.java and try again.

1 Like

Thank You very much. I have just do that and it works!

1 Like