Q. Which access modifier makes a member accessible only within the same class?

A
public
B
protected
C
private
D
default
Solution:

The private access modifier restricts access to the declaring class only.

Entri Contact Image

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