Programming (12th Grade)

What is the difference between 'public' and 'private' access modifiers in a class?

'Public' members can be accessed from outside the class, while 'private' members can only be accessed within the class itself.