What is private public and protected?

Broadly speaking, public means everyone is allowed to access, private means that only members of the same class are allowed to access, and protected means that members of subclasses are also allowed .

Sizin İçin Seçtik  Can protected access modifier be accessed within a class?

Leave a Reply

Your email address will not be published. Required fields are marked *