Home / Questions / Can a method be private?
Explanatory Question

Can a method be private?

👁 3 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

✅ Yes
Private methods are accessible only within the same class.