Q. Can a public method access a private attribute?
Solution:
A public method within the same class can access private attributes.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
A public method within the same class can access private attributes.
Strengthen Your Practice with our comprehensive question bank.