.
program. They can be accessed by objects of the class, as well as by external code. Private: Private members are only accessible from within the class. They cannot be accessed by objects of the class or external code. Protected: Protected members are similar to private members, but they can also be