Home / Questions / Can a top level class be private or protected?
Explanatory Question

Can a top level class be private or protected?

👁 762 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

No, a top level class can not be private or protected. It can have either "public" or no modifier.