Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Is this Thought correct In the process of Encapsulation?
You first Make the Object or whatever Public Then bring it back as private to separate it from its other instances . Do I have this Idea correct
perhaps I used the wrong wording as bring it back I meant using it in in instance . Still confusing I have to get past this to continue on
1 Answer
- 1 decade agoFavorite Answer
You can't change an object from public to private once it has been instantiated.
Encapsulation is about having an object be able to function by itself and do only what it's meant to do, so that if you ever have to change something about your program you only need to change that one object and not your program. This has nothing to do with changing from public to private.