Q. Can a public method access a private attribute?

A
No
B
Yes
C
Only with super
D
Only with inheritance
Solution:

A public method within the same class can access private attributes.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!