What is access scope of protected method
Answer : When you define any method precede with protected key work it will below scope :
Access Levels
Modifier | Class | Package | Subclass | World |
protected | Y | Y | Y | N |
Answer : When you define any method precede with protected key work it will below scope :
Access Levels
Modifier | Class | Package | Subclass | World |
protected | Y | Y | Y | N |